I made a TreeView with HierarchicalDataTemplate. Is there a way to access the TreeViewItem events like MouseDoubleClick() and ItemSelected().
Here is my code:
<HierarchicalDataTemplate DataType="{x:Type local:Artist}" ItemsSource="{Binding Albums}">
<TextBlock Text="{Binding Name}"/>
</HierarchicalDataTemplate>
What you want to do is set an ItemContainerStyle and then use EventSetters