Sorry for opening an old post again. I almost have the same problem as Emma
I have a question about your solution. If I understand well, to change the highlighted colour, we need to write this
Impossible de résoudre TargetProperty Foreground dans l'objet spécifié.
à MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)
à System.Windows.VisualStateManager.GoToState(Control control, String stateName, Boolean useTransitions)
à Telerik.Windows.Controls.RadMenuItem.GoToState(Boolean useTransitions, String[] stateNames)
à Telerik.Windows.Controls.RadMenuItem.ChangeVisualState(Boolean useTransitions)
à Telerik.Windows.Controls.RadMenuItem.OnIsHighlighted(DependencyObject d, DependencyPropertyChangedEventArgs e)
à Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
à System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
à System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
à System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
à System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
à Telerik.Windows.DependencyObjectExtensions.SetValue(DependencyObject element, DependencyPropertyKey key, Object value)
à MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
<
ResourceDictionary
<!-- Resource dictionary entries should be defined here. -->
<
SolidColorBrush
x:Key
=
"ControlForeground_Normal"
Color
=
"#FF000000"
/>
<
SolidColorBrush
x:Key
=
"MenuBackground"
Color
=
"#FF1A478A"
/>
<
SolidColorBrush
x:Key
=
"MenuOuterBorder"
Color
=
"Transparent"
/>
<
Thickness
x:Key
=
"MenuBorderThickness"
>0</
Thickness
>
<
Thickness
x:Key
=
"MenuItemPadding"
>6,2,7,2</
Thickness
>
<
SolidColorBrush
x:Key
=
"PanelBorderBrush"
Color
=
"White"
/>
<
CornerRadius
x:Key
=
"SplitButton_SpanCornerRadius"
>1</
CornerRadius
>
<
SolidColorBrush
x:Key
=
"MenuPopupOuterBorder"
Color
=
"#FF848484"
/>
<
SolidColorBrush
x:Key
=
"MenuPopupBackground"
Color
=
"#FFFFFFFF"
/>
<
SolidColorBrush
x:Key
=
"MenuPopupIconsBackground"
Color
=
"#FFF0F0F0"
/>
<
SolidColorBrush
x:Key
=
"MenuPopupIconsSeparatorLeft"
Color
=
"#FF848484"
/>
<
SolidColorBrush
x:Key
=
"MenuPopupIconsSeparatorRight"
Color
=
"Transparent"
/>
<
Thickness
x:Key
=
"MenuPopupIconsSeparatorMargin"
>0</
Thickness
>
<
Thickness
x:Key
=
"MenuTopLevelItemMargin"
>0</
Thickness
>
<
ControlTemplate
x:Key
=
"TopLevelHeaderTemplate"
TargetType
=
"telerik:RadMenuItem"
>
<
Grid
x:Name
=
"RootElement"
Margin
=
"{StaticResource MenuTopLevelItemMargin}"
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Highlighted"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ContentGrid"
>
<
DiscreteDoubleKeyFrame
KeyTime
=
"0"
Value
=
"0.5"
/>
</
DoubleAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Normal"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Unfocused"
/>
<
VisualState
x:Name
=
"Focused"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"CheckStates"
>
<
VisualState
x:Name
=
"Checked"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Tick"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Visible"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Icon"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Collapsed"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unchecked"
/>
<
VisualState
x:Name
=
"HideIcon"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Icon"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Visible"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
/>
<
Telerik_Windows_Controls_Chromes:ButtonChrome
x:Name
=
"SelectionChrome"
Grid.ColumnSpan
=
"3"
CornerRadius
=
"{StaticResource SplitButton_SpanCornerRadius}"
RenderNormal
=
"False"
RenderMouseOver
=
"{TemplateBinding IsHighlighted}"
RenderPressed
=
"{TemplateBinding IsSubmenuOpen}"
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
<
Grid
x:Name
=
"ContentGrid"
Margin
=
"{TemplateBinding Padding}"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Path
x:Name
=
"Tick"
Grid.Column
=
"0"
Data
=
"M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z"
Fill
=
"{TemplateBinding Foreground}"
Margin
=
"0 0 4 0"
Visibility
=
"Collapsed"
VerticalAlignment
=
"Center"
/>
<
ContentPresenter
x:Name
=
"Icon"
ContentTemplate
=
"{TemplateBinding IconTemplate}"
Content
=
"{TemplateBinding Icon}"
Grid.Column
=
"0"
Margin
=
"0 0 4 0"
/>
<
ContentPresenter
x:Name
=
"Content"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Content
=
"{TemplateBinding Header}"
Grid.Column
=
"1"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
</
Grid
>
<
Popup
x:Name
=
"PART_Popup"
HorizontalOffset
=
"-1"
VerticalOffset
=
"-1"
>
<
Grid
>
<
Grid
x:Name
=
"PopupContentElement"
Margin
=
"0 0 3 3"
>
<
Telerik_Windows_Controls_Chromes:ShadowChrome
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
<
Border
BorderBrush
=
"{StaticResource MenuPopupOuterBorder}"
BorderThickness
=
"1"
Background
=
"{StaticResource MenuPopupBackground}"
>
<
Grid
>
<
Grid
HorizontalAlignment
=
"Left"
Width
=
"{Binding Menu.IconColumnWidth, RelativeSource={RelativeSource TemplatedParent}}"
>
<
Rectangle
Fill
=
"{StaticResource MenuPopupIconsBackground}"
Margin
=
"0 0 2 0"
/>
<
Grid
HorizontalAlignment
=
"Right"
Margin
=
"{StaticResource MenuPopupIconsSeparatorMargin}"
>
<
Rectangle
Fill
=
"{StaticResource MenuPopupIconsSeparatorLeft}"
HorizontalAlignment
=
"Right"
Margin
=
"0 0 1 0"
Width
=
"1"
/>
<
Rectangle
Fill
=
"{StaticResource MenuPopupIconsSeparatorRight}"
HorizontalAlignment
=
"Right"
Margin
=
"0 0 0 0"
Width
=
"1"
/>
</
Grid
>
</
Grid
>
<
ItemsPresenter
Margin
=
"1"
/>
</
Grid
>
</
Border
>
</
Grid
>
</
Grid
>
</
Popup
>
</
Grid
>
</
ControlTemplate
>
<
ControlTemplate
x:Key
=
"TopLevelItemTemplate"
TargetType
=
"telerik:RadMenuItem"
>
<
Grid
x:Name
=
"RootElement"
Margin
=
"{StaticResource MenuTopLevelItemMargin}"
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ContentGrid"
>
<
DiscreteDoubleKeyFrame
KeyTime
=
"0"
Value
=
"0.5"
/>
</
DoubleAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Highlighted"
/>
<
VisualState
x:Name
=
"Normal"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Unfocused"
/>
<
VisualState
x:Name
=
"Focused"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"CheckStates"
>
<
VisualState
x:Name
=
"Checked"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Tick"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Visible"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Icon"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Collapsed"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unchecked"
/>
<
VisualState
x:Name
=
"HideIcon"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Icon"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Visible"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
/>
<
Telerik_Windows_Controls_Chromes:ButtonChrome
x:Name
=
"SelectionChrome"
Grid.ColumnSpan
=
"3"
CornerRadius
=
"{StaticResource SplitButton_SpanCornerRadius}"
RenderNormal
=
"False"
RenderMouseOver
=
"{TemplateBinding IsHighlighted}"
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
<
Grid
x:Name
=
"ContentGrid"
Margin
=
"{TemplateBinding Padding}"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Path
x:Name
=
"Tick"
Grid.Column
=
"0"
Data
=
"M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z"
Fill
=
"{TemplateBinding Foreground}"
Margin
=
"0 0 4 0"
Visibility
=
"Collapsed"
VerticalAlignment
=
"Center"
/>
<
ContentPresenter
x:Name
=
"Icon"
ContentTemplate
=
"{TemplateBinding IconTemplate}"
Content
=
"{TemplateBinding Icon}"
Grid.Column
=
"0"
Margin
=
"0 0 4 0"
/>
<
ContentPresenter
x:Name
=
"Content"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Content
=
"{TemplateBinding Header}"
Grid.Column
=
"1"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
<
SolidColorBrush
x:Key
=
"ButtonIconBackground_Normal"
Color
=
"#FFFFFFFF"
/>
<
SolidColorBrush
x:Key
=
"ButtonIconForeground_Normal"
Color
=
"#FF000000"
/>
<
Thickness
x:Key
=
"MenuSubItemMargin"
>2</
Thickness
>
<
ControlTemplate
x:Key
=
"SubMenuHeaderTemplate"
TargetType
=
"telerik:RadMenuItem"
>
<
Grid
x:Name
=
"RootElement"
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Highlighted"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ContentGrid"
>
<
DiscreteDoubleKeyFrame
KeyTime
=
"0"
Value
=
"0.5"
/>
</
DoubleAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Normal"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Unfocused"
/>
<
VisualState
x:Name
=
"Focused"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"CheckStates"
>
<
VisualState
x:Name
=
"Checked"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Icon"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Collapsed"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unchecked"
/>
<
VisualState
x:Name
=
"HideIcon"
/>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
/>
<
Grid
Margin
=
"{StaticResource MenuSubItemMargin}"
>
<
Telerik_Windows_Controls_Chromes:ButtonChrome
x:Name
=
"SelectionChrome"
Grid.ColumnSpan
=
"3"
CornerRadius
=
"{StaticResource SplitButton_SpanCornerRadius}"
RenderNormal
=
"False"
RenderHighlighted
=
"{TemplateBinding IsHighlighted}"
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
<
Grid
x:Name
=
"ContentGrid"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
Grid
Width
=
"{Binding Menu.IconColumnWidth, RelativeSource={RelativeSource TemplatedParent}}"
>
<
ContentPresenter
x:Name
=
"Icon"
ContentTemplate
=
"{TemplateBinding IconTemplate}"
Content
=
"{TemplateBinding Icon}"
Margin
=
"2 2 10 2"
/>
</
Grid
>
<
ContentPresenter
x:Name
=
"Content"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Content
=
"{TemplateBinding Header}"
Grid.Column
=
"1"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
<
Path
x:Name
=
"ExpandIconBackground"
Grid.Column
=
"2"
Data
=
"M0,0 L0,7 1,7 1,6 2,6 2,5 3,5 3,4 4,4 4,3 3,3 3,2 2,2 2,1 1,1 1,0 z"
Fill
=
"{StaticResource ButtonIconBackground_Normal}"
Height
=
"7"
Margin
=
"6 7 6 5"
VerticalAlignment
=
"Center"
Width
=
"4"
/>
<
Path
x:Name
=
"ExpandIconForeground"
Grid.Column
=
"2"
Data
=
"M0,0 L0,7 1,7 1,6 2,6 2,5 3,5 3,4 4,4 4,3 3,3 3,2 2,2 2,1 1,1 1,0 z"
Fill
=
"{StaticResource ButtonIconForeground_Normal}"
Height
=
"7"
Margin
=
"6 6 6 6"
VerticalAlignment
=
"Center"
Width
=
"4"
/>
</
Grid
>
</
Grid
>
<
Popup
x:Name
=
"PART_Popup"
HorizontalOffset
=
"-1"
VerticalOffset
=
"-1"
>
<
Grid
>
<
Grid
x:Name
=
"PopupContentElement"
Margin
=
"0 0 3 3"
>
<
Telerik_Windows_Controls_Chromes:ShadowChrome
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
<
Border
BorderBrush
=
"{StaticResource MenuPopupOuterBorder}"
BorderThickness
=
"1"
Background
=
"{StaticResource MenuPopupBackground}"
>
<
Grid
>
<
Grid
HorizontalAlignment
=
"Left"
Width
=
"{Binding Menu.IconColumnWidth, RelativeSource={RelativeSource TemplatedParent}}"
>
<
Rectangle
Fill
=
"{StaticResource MenuPopupIconsBackground}"
Margin
=
"0 0 2 0"
/>
<
Grid
HorizontalAlignment
=
"Right"
Margin
=
"{StaticResource MenuPopupIconsSeparatorMargin}"
>
<
Rectangle
Fill
=
"{StaticResource MenuPopupIconsSeparatorLeft}"
HorizontalAlignment
=
"Right"
Margin
=
"0 0 1 0"
Width
=
"1"
/>
<
Rectangle
Fill
=
"{StaticResource MenuPopupIconsSeparatorRight}"
HorizontalAlignment
=
"Right"
Margin
=
"0 0 0 0"
Width
=
"1"
/>
</
Grid
>
</
Grid
>
<
ItemsPresenter
Margin
=
"1"
/>
</
Grid
>
</
Border
>
</
Grid
>
</
Grid
>
</
Popup
>
</
Grid
>
</
ControlTemplate
>
<
ControlTemplate
x:Key
=
"SubMenuItemTemplate"
TargetType
=
"telerik:RadMenuItem"
>
<
Grid
x:Name
=
"RootElement"
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Highlighted"
/>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"ContentGrid"
>
<
DiscreteDoubleKeyFrame
KeyTime
=
"0"
Value
=
"0.5"
/>
</
DoubleAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Normal"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"FocusStates"
>
<
VisualState
x:Name
=
"Unfocused"
/>
<
VisualState
x:Name
=
"Focused"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"CheckStates"
>
<
VisualState
x:Name
=
"Checked"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Tick"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Visible"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Icon"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Collapsed"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unchecked"
/>
<
VisualState
x:Name
=
"HideIcon"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"Icon"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Visible"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
/>
<
Grid
Margin
=
"{StaticResource MenuSubItemMargin}"
>
<
Telerik_Windows_Controls_Chromes:ButtonChrome
x:Name
=
"SelectionChrome"
Grid.ColumnSpan
=
"3"
CornerRadius
=
"{StaticResource SplitButton_SpanCornerRadius}"
RenderNormal
=
"False"
RenderHighlighted
=
"{TemplateBinding IsHighlighted}"
telerik:StyleManager.Theme
=
"{StaticResource Theme}"
/>
<
Grid
x:Name
=
"ContentGrid"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid
Width
=
"{Binding Menu.IconColumnWidth, RelativeSource={RelativeSource TemplatedParent}}"
>
<
Path
x:Name
=
"Tick"
Grid.Column
=
"0"
Data
=
"M 0,5.1 L 1.7,5.2 L 3.4,7.1 L 8,0.4 L 9.2,0 L 3.3,10.8 Z"
Fill
=
"{TemplateBinding Foreground}"
HorizontalAlignment
=
"Center"
Visibility
=
"Collapsed"
VerticalAlignment
=
"Center"
/>
<
ContentPresenter
x:Name
=
"Icon"
ContentTemplate
=
"{TemplateBinding IconTemplate}"
Content
=
"{TemplateBinding Icon}"
Grid.Column
=
"0"
Margin
=
"2 2 10 2"
/>
</
Grid
>
<
ContentPresenter
x:Name
=
"Content"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Content
=
"{TemplateBinding Header}"
Grid.Column
=
"1"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
</
Grid
>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
<
SolidColorBrush
x:Key
=
"MenuItemSeparatorTop"
Color
=
"#FF848484"
/>
<
SolidColorBrush
x:Key
=
"MenuItemSeparatorBottom"
Color
=
"Transparent"
/>
<
Thickness
x:Key
=
"MenuItemSeparatorMargin"
>31 4 4 3</
Thickness
>
<
ControlTemplate
x:Key
=
"SeparatorTemplate"
TargetType
=
"telerik:RadMenuItem"
>
<
Grid
Height
=
"2"
Margin
=
"{StaticResource MenuItemSeparatorMargin}"
>
<
Rectangle
Fill
=
"{StaticResource MenuItemSeparatorTop}"
Height
=
"1"
VerticalAlignment
=
"Top"
/>
<
Rectangle
Fill
=
"{StaticResource MenuItemSeparatorBottom}"
Height
=
"1"
VerticalAlignment
=
"Bottom"
/>
</
Grid
>
</
ControlTemplate
>
<
Style
x:Key
=
"RadMenuItemStyle"
TargetType
=
"telerik:RadMenuItem"
>
<
Setter
Property
=
"Padding"
Value
=
"{StaticResource MenuItemPadding}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource MenuBackground}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource PanelBorderBrush}"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0,0,1,0"
/>
<
Setter
Property
=
"TopLevelHeaderTemplateKey"
Value
=
"{StaticResource TopLevelHeaderTemplate}"
/>
<
Setter
Property
=
"TopLevelItemTemplateKey"
Value
=
"{StaticResource TopLevelItemTemplate}"
/>
<
Setter
Property
=
"SubmenuHeaderTemplateKey"
Value
=
"{StaticResource SubMenuHeaderTemplate}"
/>
<
Setter
Property
=
"SubmenuItemTemplateKey"
Value
=
"{StaticResource SubMenuItemTemplate}"
/>
<
Setter
Property
=
"SeparatorTemplateKey"
Value
=
"{StaticResource SeparatorTemplate}"
/>
<
Setter
Property
=
"Template"
Value
=
"{StaticResource SubMenuItemTemplate}"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Foreground"
Value
=
"White"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
<
Setter
Property
=
"Cursor"
Value
=
"Hand"
/>
<
Setter
Property
=
"StaysOpenOnClick"
Value
=
"True"
/>
</
Style
>
<
Style
x:Key
=
"RadMenuStyle"
TargetType
=
"telerik:RadMenu"
>
<
Setter
Property
=
"IconColumnWidth"
Value
=
"0"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource MenuBackground}"
/>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource ControlForeground_Normal}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource MenuOuterBorder}"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"{StaticResource MenuBorderThickness}"
/>
<
Setter
Property
=
"telerik:AnimationManager.AnimationSelector"
>
<
Setter.Value
>
<
telerik:AnimationSelector
>
<
telerik:SlideAnimation
AnimationName
=
"Expand"
Direction
=
"In"
SlideMode
=
"Top"
TargetElementName
=
"PopupContentElement"
/>
</
telerik:AnimationSelector
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"ItemsPanel"
>
<
Setter.Value
>
<
ItemsPanelTemplate
>
<
telerik:RadWrapPanel
/>
</
ItemsPanelTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:RadMenu"
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
Padding
=
"{TemplateBinding Padding}"
>
<
ItemsPresenter
/>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"ItemContainerStyle"
Value
=
"{StaticResource RadMenuItemStyle}"
/>
</
Style
>
</
ResourceDictionary
>