tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
3
ZUGRIFFE
6225
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    kaetzchen1976 kaetzchen1976 ist offline Mitglied
    Registriert seit
    Nov 2004
    Beiträge
    16
    Hallo zusammen,

    ich suche schon nach einer Weile nach einer Idee, wie ich Floating Windows in WPF erstellen kann. Gefunden habe ich bis jetzt als Beispiel:

    http://assergs.com/wpf/

    Allerdings bekomme ich nicht heraus, wie man so etwas erstellt. Den Entwickler habe ich schon angemailt, aber bisher keine Antwort erhalten.

    Fenster im Fenster sind bei WPF nicht erlaubt. Da stolpere ich schon bei MDI drüber (wo ich auch noch immer eine nette Lösung suche).

    Es gibt bei WPF zwar die Möglichkeit, die Windows Forms einzubinden, aber dies sollte nur eine Notlösung sein und bringt mich hier nicht wirklich weiter.

    Hat jemand einen Tip, wie ich das Ganze anfangen muss?

    Grüsse
    Micha
     

  2. #2
    Avatar von Norbert Eder
    Norbert Eder Norbert Eder ist offline Mitglied Diamant
    Registriert seit
    Feb 2004
    Ort
    Österreich / Graz
    Beiträge
    5.137
    Blog-Einträge
    51
    Verschiebbare Panels? Du kannst ja ein eigenes Control entwickeln, abgeleitet von einem Panel, welches in deinem Window beliebig verschiebbar ist. Wär das keine Idee?
     

  3. #3
    kaetzchen1976 kaetzchen1976 ist offline Mitglied
    Registriert seit
    Nov 2004
    Beiträge
    16
    Danke dir!!

    Dein Tip hat mich zumindest mal ein UserControl basteln lassen, was ein bisschen das tut, was ich mir vorgestellt hatte. Und ich bin davon abgekommen, das unbedingt mit den Forms in WPF zu verwirklichen.

    Eigentlich hatte ich mir das als "Ableitung" von den Forms einfacher vorgestellt, weil ich dann vielleicht den Code von den Forms-Funktionen hätte übernehmen können. Das Problem bei WPF ist für mich nämlich irgendwie, dass es oft bekannte Standardabläufe einfach nicht mehr gibt. Alleine an der Maus-Position bin ich jetzt schon verzweifelt...

    Immerhin kann ich jetzt was verschieben, wie ich das von den Forms her kenne.

    So sieht jetzt das Control aus, was ich in ein Canvas gesteckt habe, weil man dort die Position angeben kann:

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    
    [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]UserControl[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Name[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff] =[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]myControl[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Content[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]MoveMe[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]Canvas.Top[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]10[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Canvas.Left[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]20[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]Background[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]DarkRed[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Opacity[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]0.7[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]FontWeight[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]Bold[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]FontSize[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]14[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]Height[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]80[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Width[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]200[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]AllowDrop[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]True[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]MouseDown[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]control_MouseDown[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]MouseMove[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]control_MouseMove[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]MouseUp[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]control_MouseUp[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE]

    Bewegt wird das ganze dann so:

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    
    [SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][SIZE=2] isDragging;[/SIZE]
    [SIZE=2][COLOR=#008080]Point[/COLOR][/SIZE][SIZE=2] controlPoint, mousePoint, newMousePoint;[/SIZE]
     
    [SIZE=2][COLOR=#008000]// save the points where mouse and control are[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] control_MouseDown([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, [/SIZE][SIZE=2][COLOR=#008080]MouseEventArgs[/COLOR][/SIZE][SIZE=2] e)[/SIZE]
    [SIZE=2]{[/SIZE]
    [SIZE=2]isDragging = [/SIZE][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][SIZE=2];[/SIZE]
    [SIZE=2]controlPoint =[/SIZE]
    [SIZE=2][COLOR=#0000ff]  new[/COLOR][/SIZE][SIZE=2][COLOR=#008080]Point[/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#008080]Canvas[/COLOR][/SIZE][SIZE=2].GetLeft([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].myControl), [/SIZE][SIZE=2][COLOR=#008080]Canvas[/COLOR][/SIZE][SIZE=2].GetTop([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].myControl));[/SIZE]
    [SIZE=2]mousePoint =[/SIZE]
    [SIZE=2][COLOR=#0000ff]  new[/COLOR][/SIZE][SIZE=2][COLOR=#008080]Point[/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#008080]Mouse[/COLOR][/SIZE][SIZE=2].GetPosition([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2]).X, [/SIZE][SIZE=2][COLOR=#008080]Mouse[/COLOR][/SIZE][SIZE=2].GetPosition([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2]).Y);[/SIZE]
    [SIZE=2]}[/SIZE]
     
    [SIZE=2][COLOR=#008000]// move to the actual point[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] control_MouseMove([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, [/SIZE][SIZE=2][COLOR=#008080]MouseEventArgs[/COLOR][/SIZE][SIZE=2] e)[/SIZE]
    [SIZE=2]{[/SIZE]
    [SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] (isDragging == [/SIZE][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][SIZE=2])[/SIZE]
    [SIZE=2]{[/SIZE]
    [SIZE=2]  newMousePoint = [/SIZE]
    [SIZE=2][COLOR=#0000ff]    new[/COLOR][/SIZE][SIZE=2][COLOR=#008080]Point[/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#008080]Mouse[/COLOR][/SIZE][SIZE=2].GetPosition([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2]).X, [/SIZE][SIZE=2][COLOR=#008080]Mouse[/COLOR][/SIZE][SIZE=2].GetPosition([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2]).Y);[/SIZE]
    [SIZE=2][COLOR=#008080]  Canvas[/COLOR][/SIZE][SIZE=2].SetLeft([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].myControl, (controlPoint.X + newMousePoint.X -[/SIZE]
    [SIZE=2]    mousePoint.X));[/SIZE]
    [SIZE=2][COLOR=#008080]  Canvas[/COLOR][/SIZE][SIZE=2].SetTop([/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].myControl, (controlPoint.Y + newMousePoint.Y -   [/SIZE]
    [SIZE=2]    mousePoint.Y));[/SIZE]
    [SIZE=2]}[/SIZE]
    [SIZE=2]}[/SIZE]
     
    [SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] control_MouseUp([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, [/SIZE][SIZE=2][COLOR=#008080]MouseEventArgs[/COLOR][/SIZE][SIZE=2] e)[/SIZE]
    [SIZE=2]{[/SIZE]
    [SIZE=2]isDragging = [/SIZE][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][SIZE=2];[/SIZE]
    [SIZE=2]}[/SIZE]

    Das ganze muss man jetzt natürlich noch "hübsch" machen und ein bisschen wie ein Fenster aussehen lassen

    Danach widme ich mich meinem MDI - vielleicht kann ich da ein WPF-Panel nehmen. Das hat nämlich die Parent-Child-Möglichkeiten, wo ich eben durch Zufall drüber gestolpert bin
     

  4. #4
    kaetzchen1976 kaetzchen1976 ist offline Mitglied
    Registriert seit
    Nov 2004
    Beiträge
    16
    Mit dem HeaderedContentControl kann man dann auch noch was windows-ähnliches rumfliegen lassen:

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    
    ...
    [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]DataTemplate[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]x:Key[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]header[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff] <[/COLOR][/SIZE][SIZE=2][COLOR=#800000]TextBlock[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Text[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]{Binding}[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Background[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]DarkRed[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]   Foreground[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]White[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]FontSize[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]16[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]FontWeight[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]Bold[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]   Width[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]150[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Height[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]20[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]TextWrapping[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]Wrap[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]DataTemplate>[/COLOR][/SIZE]
     
    [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]DataTemplate[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]x:Key[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]content[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff] <[/COLOR][/SIZE][SIZE=2][COLOR=#800000]TextBlock[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Text[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]{Binding}[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Background[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]Silver[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Opacity[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]0.7[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]   Foreground[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]DarkRed[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]FontSize[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]12[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]FontWeight[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]Normal[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]   Width[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]150[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Height[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]60[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]TextWrapping[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]Wrap[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]DataTemplate[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff]...[/COLOR][/SIZE]
     
    [SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]HeaderedContentControl[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Name[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]myControl[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Header[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]Window 1[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000] HeaderTemplate[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]{StaticResource header}[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000] Canvas.Top[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]10[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Canvas.Left[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]20[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000] AllowDrop[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]True[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000] MouseDown[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]control_MouseDown[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000] MouseMove[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]control_MouseMove[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000] MouseUp[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]control_MouseUp[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff]   <[/COLOR][/SIZE][SIZE=2][COLOR=#800000]ContentControl[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Name[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]myContent[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#ff0000]Content[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]This is the content of window 1.[/COLOR][/SIZE][SIZE=2]"[/SIZE]
    [SIZE=2][COLOR=#ff0000]     ContentTemplate[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]{StaticResource content}[/COLOR][/SIZE][SIZE=2]"[/SIZE][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE]
    [SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]HeaderedContentControl[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE]
     

Ähnliche Themen

  1. WPF/XAML Infos
    Von DarkWizzard im Forum .NET WPF & Silverlight
    Antworten: 4
    Letzter Beitrag: 15.05.10, 19:39
  2. 3D Modelllierung für XAML
    Von andralin im Forum Sonstige 3D-Programme
    Antworten: 0
    Letzter Beitrag: 12.09.08, 14:29
  3. XAML mit Eclipse SWT
    Von Thomas Darimont im Forum Java
    Antworten: 1
    Letzter Beitrag: 14.10.07, 16:12
  4. TreeViews und Xaml
    Von Clipp3r im Forum .NET Café
    Antworten: 3
    Letzter Beitrag: 27.03.07, 21:38
  5. Antworten: 8
    Letzter Beitrag: 11.11.04, 09:53