
Envoyé par
MahdiSeg
Bonjour,
Je veux récupérer tous les checkbox dans la listbox j'ai utilsé le VisualTreeHelper mais ne marche pas .Est ce qu'il ya un moyen de les récupéré ?
voici le code xaml:
<ListBox x:Name="CheckBoxListBox" Margin="16,8,16,16" ItemsSource="{Binding Collection}" Grid.Row="1" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" SelectionMode="Extended">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text ="{Binding code}" />
<CheckBox />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Partager