
Hi guys,
I have a TreeView where I set a Style for the TreeViewItem to make them use properties on the data objects for the Expanded and Selected state. Something like this:Unfortunately, this seems to turn off the theme-stuff I get from you guys, making this particular TreeView look different than the other TreeView's in my Window. How can I prevent that from happening? I really like the theme you have added to my TreeView's and so on :)
I have a TreeView where I set a Style for the TreeViewItem to make them use properties on the data objects for the Expanded and Selected state. Something like this:
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
</Style>
</TreeView.ItemContainerStyle>