I´ve got a problem with styling an PanelBarItem in a HierarchicalDataTemplate.
I copied a style and tried to bind it to my PanelBarItem, but only the default-style appears (with the exception of the foreground, this color agrees with my style ).
Do I have a simple PanelBar with a view items in it and bind the style to it, everything is fine.
Causes the HierarchicalDataTemplate this missing style?
Below the Structure of my PanelBar:
<DataTemplate x:Key="BereicheTemplate">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Margin="5" Text="{Binding Name}"/>
</StackPanel>
</DataTemplate>
<HierarchicalDataTemplate x:Key="ItemPanelTemplateThemen"
ItemTemplate="{StaticResource BereicheTemplate}"
ItemsSource="{Binding BereicheListe}" >
<telerik:RadPanelBarItem Style="{DynamicResource RadPanelBarItemStyleMC}"
HeaderTemplate="{DynamicResource ThemenDataTemplate}"
Header="{Binding}" >
</telerik:RadPanelBarItem>
</HierarchicalDataTemplate>
.
.
.
<telerik:RadPanelBar x:Name="ThemenListe" Margin="0,23.424,0,147.867" ItemTemplate="{DynamicResource ItemPanelTemplateThemen}" Style="{DynamicResource RadPanelBarStyleMC}" >
Regards
Betty