Given the following code:
<UserControl.Resources>
<DataTemplate x:Key="CountryTemplate">
<TextBlock Text="{Binding Name, Mode=OneWay}" />
</DataTemplate>
<DataTemplate x:Key="RegionTemplate">
<TextBlock Text="{Binding Region, Mode=OneWay}" />
</DataTemplate>
<Telerik:HierarchicalDataTemplate x:Key="Region"
HeaderTemplate="{StaticResource RegionTemplate}"
ItemsSource = "{Binding Countries.Items, Mode=OneWay}"
ItemTemplate="{StaticResource CountryTemplate}" />
</UserControl.Resources>
<Client:GodotTreeView x:Name="trvSelectedCountries" IsEditable="False"
ItemsSource="{Binding Regions, Mode=OneWay}"
ItemTemplate="{StaticResource Region}" />
We would like to databind on the checkstate of each individual item without having to rely on events. Currently, the way we got around this is by not using the checkbox functionality already in the treeview and just using a CheckBox inside the datatemplate, however, we would prefer to work off the existing treeview functionality if possible.
Thanks,
-Jarred Froman