is there any way to, on "Checked" event fire, get the current "MyClass" element in the code behind given the code below:
<TreeView Name="TreeViewName">
<TreeView.Resources >
<HierarchicalDataTemplate DataType="{x:Type local:MyClass}" ItemsSource="{Binding Children}">
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding Checked}" VerticalAlignment="Center" Checked="OnExplorerCheck" ></CheckBox>
<Image Source="{Binding Icon}" Height="15" Margin="5,0,0,0"></Image>
<Label Content="{Binding Name}"></Label>
</StackPanel>
</HierarchicalDataTemplate>
</TreeView.Resources>
</TreeView>
I'd like to be able to, upon checking a checkbox, get all of the data of the current element of the tree view. Note that "MyClass" can have any number of properties, and I'd like to be able to access them all. Is there any way for me to do this?