Hello Telerik team
I am trying to style RadMenuItem for my WPF application. I am almost done but I am stuck in one critical part.
I am mostly making use of submenuHeader, so I styled the HighlightVisual to suit my needs (for example changed color to green)
The place that was affecting mentioned HighlightVisual was in the trigger Role of SubmenuHeader.
<Trigger Property="Role"
Value="SubmenuHeader">
...
<Border x:Name="HighlightVisual"
BorderThickness="1"
CornerRadius="1"
Visibility="Collapsed"
Background="Green" />
In the same role (SubmenuHeader) I also changed the background of the popup (for example Yellow)
...
<Popup x:Name="PART_Popup"
AllowsTransparency="True"
Focusable="False"
HorizontalOffset="1"
IsOpen="{TemplateBinding IsSubmenuOpen}"
VerticalOffset="-1" >
<Grid>
<Grid x:Name="PopupContentElement">
<Border BorderBrush="#FF848484"
BorderThickness="1"
Background="Yellow">
Now my problem is this : How do I change the Highlight color of the items in the popup ? I can see that there is an ItemsPresenter defined in the submenuHeader's popup that probably contains radMenuItems, with a default Highlight (border background) color of a yellow gradient but I don't know where this is coming from or is defined. I need to override this default color so my context menu is consistent. Any help would be appreciated.
Telerik version 2012.1.0402
Thanks in advance
I am trying to style RadMenuItem for my WPF application. I am almost done but I am stuck in one critical part.
I am mostly making use of submenuHeader, so I styled the HighlightVisual to suit my needs (for example changed color to green)
The place that was affecting mentioned HighlightVisual was in the trigger Role of SubmenuHeader.
<Trigger Property="Role"
Value="SubmenuHeader">
...
<Border x:Name="HighlightVisual"
BorderThickness="1"
CornerRadius="1"
Visibility="Collapsed"
Background="Green" />
In the same role (SubmenuHeader) I also changed the background of the popup (for example Yellow)
...
<Popup x:Name="PART_Popup"
AllowsTransparency="True"
Focusable="False"
HorizontalOffset="1"
IsOpen="{TemplateBinding IsSubmenuOpen}"
VerticalOffset="-1" >
<Grid>
<Grid x:Name="PopupContentElement">
<Border BorderBrush="#FF848484"
BorderThickness="1"
Background="Yellow">
Now my problem is this : How do I change the Highlight color of the items in the popup ? I can see that there is an ItemsPresenter defined in the submenuHeader's popup that probably contains radMenuItems, with a default Highlight (border background) color of a yellow gradient but I don't know where this is coming from or is defined. I need to override this default color so my context menu is consistent. Any help would be appreciated.
Telerik version 2012.1.0402
Thanks in advance