Hi - I have followed the Tree View styles customization from http://www.telerik.com/help/wpf/radtreeview-styles-and-templates-templated-nodes.html and it works just great.
I've now introduced a DataTemplateSelector that picks between one of the two HierarchicalDataTemplate that I have in my control's resources.
My problem is that once I introduce the DataTemplateSelector none of the styles or control templates that I have set up are applied. Is this a known issue? I tried putting
I've now introduced a DataTemplateSelector that picks between one of the two HierarchicalDataTemplate that I have in my control's resources.
My problem is that once I introduce the DataTemplateSelector none of the styles or control templates that I have set up are applied. Is this a known issue? I tried putting
template.ItemContainerStyle = frameworkElement.FindResource("TreeViewItemStyle") as Style;
into my template selector but it did not seem to have any effect.
Note that if I set ItemTemplate="{StaticResource blah}" instead of
ItemTemplateSelector="{StaticResource selector" things works fine.
Thanks