j'ai
mon treeview :mes je veux trier les fils des noeuds
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <sdk:TreeView Canvas.Left="1" Width="556" Name="treeView1" Margin="16,14,0,6" Background="#FFECEEF2" HorizontalContentAlignment="Right" HorizontalAlignment="Left" SelectedItemChanged="treeView1_SelectedItemChanged">
<sdk:TreeView.ItemTemplate>
<sdk:HierarchicalDataTemplate ItemsSource="{Binding Path=suivi_instruction,Mode=TwoWay}">
<sdk:HierarchicalDataTemplate.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=x_agent.nom_agent}" FontFamily="Comic Sans MS" Foreground="Orange"/>
<TextBlock Text=" " />
<TextBlock Text="{Binding Path=objet_suivi}" />
</StackPanel>
</DataTemplate>
</sdk:HierarchicalDataTemplate.ItemTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=x_agent.nom_agent}" FontFamily="Comic Sans MS" Foreground="Blue" />
<TextBlock Text=" " />
<TextBlock Text="{Binding Path=date}" FontFamily="Comic Sans MS" Foreground="Blue"/>
<TextBlock Text=" : " />
<TextBlock Text="{Binding Path=objet_instruction}" />
</StackPanel>
</sdk:HierarchicalDataTemplate>
</sdk:TreeView.ItemTemplate>
</sdk:TreeView> |
donc je veux faire le trie ici
<sdk:HierarchicalDataTemplate ItemsSource="{Binding Path=suivi_instruction,Mode=TwoWay}">
Partager