Bonjour,
Je n'arrive pas à faire une child windows personnalisée.
Je m'explique je voudrai hérité de la childwindow et explosé plusieurs propriétés content de celle ci.
Mais je vois pas trop comment faire.
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <control:childwindow ... > <stackPanel> <Content x:Name="content1"/> <Content x:Name="content2"> </stackPanel> </control:childwindow>
Et l'utiliser à peut près ainsi:
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <mycontrol:MyChildwindow ... > <Content1> <TextBlock="1"/> </Content1> <Content2> <TextBlock="1"/> </Content2> </stackPanel> </control:childwindow>
Voila, j'ai jamais su faire des contrôles avec plusieurs contenue en Silverlight. Si quelqu'un avait un exemple ça m'aiderai pas mal. ^^
EDIT:
Bon, bah stackoverflow avait ma réponse :
http://stackoverflow.com/questions/2...-that-would-be
Je l'implémenter/tester/comprendre et faire une petite explication dans ce thread.
Partager