C
C#3y ago
frknztrk

Wpf Itemscontrol child access

I'm trying to enter the checkbox that I added dynamically.
<ItemsControl Style="{DynamicResource verseNavButtonItemsControl}" x:Name="vb1" Grid.Column="1">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox x:Name="vbchk1" Style="{DynamicResource versesNavButtonV}" Uid="{Binding VerseId}" IsChecked="{Binding VerseCheck}" Content="{Binding RelativeDesk}" Tag="{Binding Status}" Click="activeVerseSelected" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

<ItemsControl Style="{DynamicResource verseNavButtonItemsControl}" x:Name="vb1" Grid.Column="1">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox x:Name="vbchk1" Style="{DynamicResource versesNavButtonV}" Uid="{Binding VerseId}" IsChecked="{Binding VerseCheck}" Content="{Binding RelativeDesk}" Tag="{Binding Status}" Click="activeVerseSelected" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

access vbchk1
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server