This question is locked. New answers and comments are not allowed.
Hello,
I hope I haven't overlooked a thread or support-page. I'm using the RadPanelBar with the help of a Binding (see code below) to a dictionary.
All works fine, I see my items and my childs. But now I'm trying to remove the arrow (expander) from the Header-elements. I already tried the ExpanderStyle-Property and set it Opacity to 0 (like I saw in an example related to a TreeView) but nothing changes and it seems, that the ExpanderStyle-Property isn't applied in any way.
What is my mistake?
Additionally I want to change later on the background and much more of the styling, so I guess it would be a good solution to edit the template and directly removes the arrows? I already tried something with that but than my DataTemplate (see above) wasn't used anymore...
So how could the expander easily removed and the Header- and Children-backgrouns easily changed?
Thank you very much in advance!
I hope I haven't overlooked a thread or support-page. I'm using the RadPanelBar with the help of a Binding (see code below) to a dictionary.
All works fine, I see my items and my childs. But now I'm trying to remove the arrow (expander) from the Header-elements. I already tried the ExpanderStyle-Property and set it Opacity to 0 (like I saw in an example related to a TreeView) but nothing changes and it seems, that the ExpanderStyle-Property isn't applied in any way.
What is my mistake?
<telerik:RadPanelBar Height="100" Width="300" x:Name="RadPanelMenu" ExpandMode="Single" ItemsSource="{Binding MenuItems}"> <telerik:RadPanelBar.ExpanderStyle> <Style TargetType="ToggleButton"> <Setter Property="Opacity" Value="0"/> </Style> </telerik:RadPanelBar.ExpanderStyle> <telerik:RadPanelBar.ItemTemplate> <telerik:HierarchicalDataTemplate ItemsSource="{Binding Path=Value}"> <telerik:HierarchicalDataTemplate.ItemTemplate> <DataTemplate> <HyperlinkButton NavigateUri="{Binding Path=Target}" Command="{Binding Path=Command}" Content="{Binding Path=Image}" Tag="{Binding Path=Title}" Style="{StaticResource ParentMenuItemStyle}"/> </DataTemplate> </telerik:HierarchicalDataTemplate.ItemTemplate> <HyperlinkButton NavigateUri="{Binding Path=Key.Target}" Command="{Binding Path=Key.Command}" Content="{Binding Path=Key.Image}" Tag="{Binding Path=Key.Title}" Style="{StaticResource ParentMenuItemStyle}"/> </telerik:HierarchicalDataTemplate> </telerik:RadPanelBar.ItemTemplate></telerik:RadPanelBar>Additionally I want to change later on the background and much more of the styling, so I guess it would be a good solution to edit the template and directly removes the arrows? I already tried something with that but than my DataTemplate (see above) wasn't used anymore...
So how could the expander easily removed and the Header- and Children-backgrouns easily changed?
Thank you very much in advance!
