I am trying to get a separator to display a brey bar and cannot get it to do so. I set up a style and assigned it to the menu but for some reason the separators of the menu do not pick up the style. How would I do this?
Here it the style:
And here is the assignment
Here it the style:
<
Style
x:Key
=
"MenuItemStyle1"
TargetType
=
"telerikNavigation:RadMenuItem"
>
<
Setter
Property
=
"Background"
Value
=
"Transparent"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"Transparent"
/>
<
Setter
Property
=
"Padding"
Value
=
"4,3,2,3"
/>
<
Setter
Property
=
"SeparatorTemplateKey"
>
<
Setter.Value
>
<
ControlTemplate
x:Key
=
"SeparatorTemplate"
TargetType
=
"telerikNavigation:RadMenuItem"
>
<
Grid
Height
=
"10"
Margin
=
"0, 3, 0, 0"
>
<
Rectangle
Fill
=
"Red"
Height
=
"5"
VerticalAlignment
=
"Top"
/>
<
Rectangle
Fill
=
"Green"
Height
=
"5"
VerticalAlignment
=
"Bottom"
/>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
And here is the assignment
<
telerikNavigation:RadContextMenu
x:Name
=
"DesignerContextMenu"
ItemClick
=
"DesignerContextMenuClick"
Opened
=
"DesignerContextMenuOpened"
ItemContainerStyle
=
"{StaticResource MenuItemStyle1}"
Margin
=
"0,0,0,0"
>