How do I change Chrome colour to blue colour in Hover RadMenuItemStyle.

2 posts, 0 answers
  1. Debranjan
    Debranjan avatar
    9 posts
    Member since:
    May 2011

    Posted 23 Jun 2011 Link to this post


    How do I change Chrome colour to blue colour in Hover RadMenuItemStyle. Please solve this problem

    My code has given below:

     

     

     

    <LinearGradientBrush x:Key="ControlBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

    <GradientStop Color="#FFFFFFFF" Offset="0"/>

     

     

     

     

    <GradientStop Color="#FFDCDCDC" Offset="0.50"/>

     

     

     

     

    <GradientStop Color="#FFADADAD" Offset="0.50"/>

     

     

     

     

    <GradientStop Color="#FFD4D4D4" Offset="1"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF848484"/>

     

     

     

     

    <CornerRadius x:Key="MSplitButton_SpanCornerRadius">1</CornerRadius>

     

     

     

     

    <SolidColorBrush x:Key="ControlInnerBorder_Normal" Color="#FFFFFFFF"/>

     

     

     

     

    <System:Double x:Key="ControlOuterBorderGradientStop0">0</System:Double>

     

     

     

     

    <System:Double x:Key="ControlOuterBorderGradientStop1">1</System:Double>

     

     

     

     

    <System:Double x:Key="ControlBackgroundGradientStop0">0</System:Double>

     

     

     

     

    <System:Double x:Key="ControlBackgroundGradientStop1">0.5</System:Double>

     

     

     

     

    <System:Double x:Key="ControlBackgroundGradientStop2">0.5</System:Double>

     

     

     

     

    <System:Double x:Key="ControlBackgroundGradientStop3">1</System:Double>

     

     

     

     

    <System:Double x:Key="ControlInnerBorderGradientStop0">0</System:Double>

     

     

     

     

    <System:Double x:Key="ControlInnerBorderGradientStop1">1</System:Double>

     

     

     

     

    <SolidColorBrush x:Key="MControlOuterBorder_Focused" Color="#FFFFC92B"/>

     

     

     

     

    <SolidColorBrush x:Key="ControlBackground_Focused" Color="Transparent"/>

     

     

     

     

    <SolidColorBrush x:Key="MControlInnerBorder_Focused" Color="Transparent"/>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Active_Stop0">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Active_Stop1">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Active_Stop0">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Active_Stop1">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Active_Stop0">#FFFFFEF3</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Active_Stop1">#FFFCF7D1</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Active_Stop2">#FFFCF7D1</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Active_Stop3">#FFFAF0AF</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_MouseOver_Stop0">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_MouseOver_Stop1">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_MouseOver_Stop0">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_MouseOver_Stop1">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOver_Stop0">#FFFFFBDA</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOver_Stop1">#FFFEEBAE</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOver_Stop2">#FFFFD25A</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOver_Stop3">#FFFFFBA3</Color>

     

     

     

     

    <SolidColorBrush x:Key="ControlOuterBorder_Highlighted" Color="#FFE7362E"/>

     

     

     

     

    <SolidColorBrush x:Key="ControlInnerBorder_Highlighted" Color="#FFBB8FD6"/>

     

     

     

     

    <LinearGradientBrush x:Key="ControlBackground_Highlighted" EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

    <GradientStop Color="#FFF38335" Offset="0"/>

     

     

     

     

    <GradientStop Color="#FFFD4920" Offset="1"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    <SolidColorBrush x:Key="ControlOuterBorder_Selected" Color="#FFFFC92B"/>

     

     

     

     

    <SolidColorBrush x:Key="ControlInnerBorder_Selected" Color="#FFFFFFFF"/>

     

     

     

     

    <LinearGradientBrush x:Key="ControlBackground_Selected" EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

    <GradientStop Color="#FFFCE79F" Offset="1"/>

     

     

     

     

    <GradientStop Color="#FFFDD3A8"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Checked_Stop0">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Checked_Stop1">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Checked_Stop0">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Checked_Stop1">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Checked_Stop0">#FFFFDCAB</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Checked_Stop1">#FFFFD18F</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Checked_Stop2">#FFFE9227</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Checked_Stop3">#FFFFD74E</Color>

     

     

     

     

    <LinearGradientBrush x:Key="MControlOuterBorder_DisabledChecked" EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

    <GradientStop Color="#FF282828"/>

     

     

     

     

    <GradientStop Color="#FF5F5F5F" Offset="1"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    <LinearGradientBrush x:Key="ControlInnerBorder_DisabledChecked" EndPoint="0.5,1" StartPoint="0.5,0">

     

     

     

     

    <GradientStop Color="#FFB69A78"/>

     

     

     

     

    <GradientStop Color="#FFFFE17A" Offset="0.125"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    <SolidColorBrush x:Key="MControlBackground_DisabledChecked" Color="#FFE0E0E0"/>

     

     

     

     

    <Color x:Key="ControlOuterBorder_MouseOverChecked_Stop0">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_MouseOverChecked_Stop1">#FFFFC92B</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_MouseOverChecked_Stop0">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_MouseOverChecked_Stop1">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOverChecked_Stop0">#FFFFE8AB</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOverChecked_Stop1">#FFFFE08F</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOverChecked_Stop2">#FFFEAF27</Color>

     

     

     

     

    <Color x:Key="ControlBackground_MouseOverChecked_Stop3">#FFFFE74E</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Pressed_Stop0">#FF282828</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Pressed_Stop1">#FF5F5F5F</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Pressed_Stop0">#FFB69A78</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Pressed_Stop1">#FFFFE17A</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Pressed_Stop0">#FFFFDCAB</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Pressed_Stop1">#FFFFD18F</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Pressed_Stop2">#FFFE9227</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Pressed_Stop3">#FFFFBA74</Color>

     

     

     

     

    <SolidColorBrush x:Key="MControlOuterBorder_Disabled" Color="#FF989898"/>

     

     

     

     

    <SolidColorBrush x:Key="ControlInnerBorder_Disabled" Color="Transparent"/>

     

     

     

     

    <SolidColorBrush x:Key="MControlBackground_Disabled" Color="#FFE0E0E0"/>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Normal_Stop0">#FF848484</Color>

     

     

     

     

    <Color x:Key="ControlOuterBorder_Normal_Stop1">#FF848484</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Normal_Stop0">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlInnerBorder_Normal_Stop1">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Normal_Stop0">#FFFFFFFF</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Normal_Stop1">#FFDCDCDC</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Normal_Stop2">#FFADADAD</Color>

     

     

     

     

    <Color x:Key="ControlBackground_Normal_Stop3">#FFD4D4D4</Color>

     

     

     

     

    <Style x:Key="MenuButtonChromeStyle" TargetType="Telerik_Windows_Controls_Chromes:ButtonChrome">

     

     

     

     

    <Setter Property="IsTabStop" Value="False"/>

     

     

     

     

    <Setter Property="Background" Value="blue"/>

     

     

     

     

    <Setter Property="BorderBrush" Value="LightBlue"/>

     

     

     

     

    <Setter Property="BorderThickness" Value="1"/>

     

     

     

     

    <Setter Property="CornerRadius" Value="{StaticResource MSplitButton_SpanCornerRadius}"/>

     

     

     

     

    <Setter Property="Template">

     

     

     

     

    <Setter.Value>

     

     

     

     

    <ControlTemplate TargetType="Telerik_Windows_Controls_Chromes:ButtonChrome">

     

     

     

     

    <Grid>

     

     

     

     

    <VisualStateManager.VisualStateGroups>

     

     

     

     

    <VisualStateGroup x:Name="CommonStatesGroup">

     

     

     

     

    <VisualStateGroup.Transitions>

     

     

     

     

    <VisualTransition From="MouseOver" GeneratedDuration="00:00:00.150" To="None"/>

     

     

     

     

    <VisualTransition From="Active" GeneratedDuration="00:00:00.150" To="None"/>

     

     

     

     

    </VisualStateGroup.Transitions>

     

     

     

     

    <VisualState x:Name="None">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OuterBorder">

     

     

     

     

    <LinearDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <LinearDoubleKeyFrame KeyTime="0:0:0.0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlOuterBorder_Active_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlOuterBorder_Active_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlInnerBorder_Active_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlInnerBorder_Active_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlBackground_Active_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlBackground_Active_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlBackground_Active_Stop2}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.0" Value="{StaticResource ControlBackground_Active_Stop3}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="Normal">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="Active">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOver_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOver_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOver_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOver_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop2}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop3}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="Highlighted">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Highlighted}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Highlighted}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="Selected">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Selected}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Selected}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="Checked">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlOuterBorder_Checked_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlOuterBorder_Checked_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlInnerBorder_Checked_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlInnerBorder_Checked_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Checked_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Checked_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Checked_Stop2}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Checked_Stop3}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="DisabledChecked">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MControlOuterBorder_DisabledChecked}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_DisabledChecked}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <!--<VisualState x:Name="MouseOverChecked">

     

    <Storyboard>

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <DiscreteDoubleKeyFrame KeyTime="0:0:00.115" Value="1"/>

    </DoubleAnimationUsingKeyFrames>

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CommonStatesWrapper">

    <DiscreteDoubleKeyFrame KeyTime="00:00:00.115" Value="0"/>

    </DoubleAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOverChecked_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOverChecked_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOverChecked_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOverChecked_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOverChecked_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOverChecked_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOverChecked_Stop2}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOverChecked_Stop3}"/>

    </ColorAnimationUsingKeyFrames>

    </Storyboard>

    </VisualState>

    <VisualState x:Name="MouseOver">

    <Storyboard>

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

    </DoubleAnimationUsingKeyFrames>

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CommonStatesWrapper">

    <DiscreteDoubleKeyFrame KeyTime="00:00:00.115" Value="0"/>

    </DoubleAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOver_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOver_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOver_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOver_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop2}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop3}"/>

    </ColorAnimationUsingKeyFrames>

    </Storyboard>

    </VisualState>-->

     

     

     

    <VisualState x:Name="Pressed">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CommonStatesWrapper">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="00:00:00.050" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlOuterBorder_Pressed_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlOuterBorder_Pressed_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlInnerBorder_Pressed_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlInnerBorder_Pressed_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop2}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop3}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="Disabled">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MControlOuterBorder_Disabled}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="NoneVertical">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="Transparent"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="NormalVertical">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlOuterBorder_Normal_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlOuterBorder_Normal_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlInnerBorder_Normal_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlInnerBorder_Normal_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Normal_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Normal_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Normal_Stop2}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.150" Value="{StaticResource ControlBackground_Normal_Stop3}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <!--<VisualState x:Name="MouseOverVertical">

     

    <Storyboard>

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

    </DoubleAnimationUsingKeyFrames>

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

    </PointAnimationUsingKeyFrames>

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

    </PointAnimationUsingKeyFrames>

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonInnerBorder">

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

    </PointAnimationUsingKeyFrames>

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CommonStatesWrapper">

    <DiscreteDoubleKeyFrame KeyTime="00:00:00.115" Value="0"/>

    </DoubleAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOver_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlOuterBorder_MouseOver_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOver_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlInnerBorder_MouseOver_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop0}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop1}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop2}"/>

    </ColorAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

    <SplineColorKeyFrame KeyTime="00:00:00.115" Value="{StaticResource ControlBackground_MouseOver_Stop3}"/>

    </ColorAnimationUsingKeyFrames>

    </Storyboard>

    </VisualState>-->

     

     

     

    <VisualState x:Name="PressedVertical">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CommonStatesWrapper">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="00:00:00.050" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlOuterBorder_Pressed_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlOuterBorder_Pressed_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlInnerBorder_Pressed_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlInnerBorder_Pressed_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop0}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop1}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop2}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <SplineColorKeyFrame KeyTime="00:00:00.050" Value="{StaticResource ControlBackground_Pressed_Stop3}"/>

     

     

     

     

    </ColorAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="DisabledVertical">

     

     

     

     

    <Storyboard>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonOuterBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(GradientBrush.EndPoint)" Storyboard.TargetName="AnimatedCommonInnerBorder">

     

     

     

     

    <DiscretePointKeyFrame KeyTime="0:0:0" Value="1,0"/>

     

     

     

     

    </PointAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource MControlOuterBorder_Disabled}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}"/>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    </VisualStateGroup>

     

     

     

     

    <VisualStateGroup x:Name="FocusStatesGroup">

     

     

     

     

    <VisualState x:Name="Unfocused">

     

     

     

     

    <Storyboard>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="00:00:00.150">

     

     

     

     

    <DiscreteObjectKeyFrame.Value>

     

     

     

     

    <Visibility>Collapsed</Visibility>

     

     

     

     

    </DiscreteObjectKeyFrame.Value>

     

     

     

     

    </DiscreteObjectKeyFrame>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual">

     

     

     

     

    <LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    <VisualState x:Name="Focused">

     

     

     

     

    <Storyboard>

     

     

     

     

    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">

     

     

     

     

    <DiscreteObjectKeyFrame KeyTime="0:0:0">

     

     

     

     

    <DiscreteObjectKeyFrame.Value>

     

     

     

     

    <Visibility>Visible</Visibility>

     

     

     

     

    </DiscreteObjectKeyFrame.Value>

     

     

     

     

    </DiscreteObjectKeyFrame>

     

     

     

     

    </ObjectAnimationUsingKeyFrames>

     

     

     

     

    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual">

     

     

     

     

    <LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1"/>

     

     

     

     

    </DoubleAnimationUsingKeyFrames>

     

     

     

     

    </Storyboard>

     

     

     

     

    </VisualState>

     

     

     

     

    </VisualStateGroup>

     

     

     

     

    </VisualStateManager.VisualStateGroups>

     

     

     

     

    <Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{StaticResource ControlBackground_Highlighted}" CornerRadius="{TemplateBinding CornerRadius}">

     

     

     

     

    <Border x:Name="InnerBorder" BorderBrush="{StaticResource ControlInnerBorder_Normal}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}"/>

     

     

     

     

    </Border>

     

     

     

     

    <Border x:Name="AnimatedCommonOuterBorder" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}">

     

     

     

     

    <Border.BorderBrush>

     

     

     

     

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">

     

     

     

     

    <GradientStop Color="blue" Offset="{StaticResource ControlOuterBorderGradientStop0}"/>

     

     

     

     

    <GradientStop Color="blue" Offset="{StaticResource ControlOuterBorderGradientStop1}"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    </Border.BorderBrush>

     

     

     

     

    <Border.Background>

     

     

     

     

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">

     

     

     

     

    <GradientStop Color="LightBlue" Offset="{StaticResource ControlBackgroundGradientStop0}"/>

     

     

     

     

    <GradientStop Color="LightBlue" Offset="{StaticResource ControlBackgroundGradientStop1}"/>

     

     

     

     

    <GradientStop Color="LightBlue" Offset="{StaticResource ControlBackgroundGradientStop2}"/>

     

     

     

     

    <GradientStop Color="LightBlue" Offset="{StaticResource ControlBackgroundGradientStop3}"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    </Border.Background>

     

     

     

     

    <Border x:Name="AnimatedCommonInnerBorder" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding InnerCornerRadius}">

     

     

     

     

    <Border.BorderBrush>

     

     

     

     

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">

     

     

     

     

    <GradientStop Color="#FFFFFFFF" Offset="{StaticResource ControlInnerBorderGradientStop0}"/>

     

     

     

     

    <GradientStop Color="#FFFFFFFF" Offset="{StaticResource ControlInnerBorderGradientStop1}"/>

     

     

     

     

    </LinearGradientBrush>

     

     

     

     

    </Border.BorderBrush>

     

     

     

     

    </Border>

     

     

     

     

    </Border>

     

     

     

     

    <Border x:Name="CommonStatesWrapper">

     

     

     

     

    <Border x:Name="FocusVisual" BorderBrush="{StaticResource MControlOuterBorder_Focused}" BorderThickness="{TemplateBinding BorderThickness}" Background="{StaticResource ControlBackground_Focused}" CornerRadius="{TemplateBinding CornerRadius}" Opacity="0" Visibility="Collapsed">

     

     

     

     

    <Border x:Name="FocusInnerVisual" BorderBrush="{StaticResource MControlInnerBorder_Focused}" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}"/>

     

     

     

     

    </Border>

     

     

     

     

    </Border>

     

     

     

     

    </Grid>

     

     

     

     

    </ControlTemplate>

     

     

     

     

    </Setter.Value>

     

     

     

     

    </Setter>

     

     

     

     

    </Style>

     

     

     

     

    <Thickness x:Key="MenuItemPadding">6 2</Thickness>

     

     

     

     

    <SolidColorBrush x:Key="PanelBorderBrush" Color="#FF848484"/>

     

     

     

     

    <!--<telerik:Office_BlackTheme x:Key="Theme"/>-->

     

     

     

     

    <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">27 0 0 0</Thickness>

     

     

     

     

    <Thickness x:Key="MenuTopLevelItemMargin">2</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 MSplitButton_SpanCornerRadius}" RenderNormal="False" RenderMouseOver="{TemplateBinding IsHighlighted}" RenderPressed="{TemplateBinding IsSubmenuOpen}" telerik:StyleManager.Theme="Windows7"/>

     

     

     

     

    <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" Content="{TemplateBinding Icon}" Grid.Column="0" Margin="0 0 4 0" VerticalAlignment="Center"/>

     

     

     

     

    <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="Windows7"/>

     

     

     

     

    <Border BorderBrush="{StaticResource MenuPopupOuterBorder}" BorderThickness="1" Background="{StaticResource MenuPopupBackground}">

     

     

     

     

    <Grid>

     

     

     

     

    <Rectangle Fill="{StaticResource MenuPopupIconsBackground}" HorizontalAlignment="Left" Width="27"/>

     

     

     

     

    <Grid HorizontalAlignment="Left" Margin="{StaticResource MenuPopupIconsSeparatorMargin}" Width="2">

     

     

     

     

    <Rectangle Fill="{StaticResource MenuPopupIconsSeparatorLeft}" HorizontalAlignment="Left" Width="1"/>

     

     

     

     

    <Rectangle Fill="{StaticResource MenuPopupIconsSeparatorRight}" HorizontalAlignment="Right" Width="1"/>

     

     

     

     

    </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 MSplitButton_SpanCornerRadius}" RenderNormal="False" RenderMouseOver="{TemplateBinding IsHighlighted}" RenderPressed="{TemplateBinding IsFocused}" telerik:StyleManager.Theme="Windows7"/>

     

     

     

     

    <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" Content="{TemplateBinding Icon}" Grid.Column="0" Margin="0 0 4 0" VerticalAlignment="Center"/>

     

     

     

     

    <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="MButtonIconBackground_Normal" Color="#FFFFFFFF"/>

     

     

     

     

    <SolidColorBrush x:Key="MButtonIconForeground_Normal" Color="#FF000000"/>

     

     

     

     

    <Thickness x:Key="MenuSubItemMargin">2</Thickness>

     

     

     

     

    <ControlTemplate x:Key="SubMenuHeaderTemplate" TargetType="telerik:RadMenuItem">

     

     

     

     

    <Grid x:Name="RootElement" Background="{TemplateBinding Background}" Margin="{StaticResource MenuSubItemMargin}">

     

     

     

     

    <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}"/>

     

     

     

     

    <Telerik_Windows_Controls_Chromes:ButtonChrome x:Name="SelectionChrome" Grid.ColumnSpan="3" CornerRadius="{StaticResource MSplitButton_SpanCornerRadius}" RenderNormal="False" RenderHighlighted="{TemplateBinding IsHighlighted}" telerik:StyleManager.Theme="Windows7" Style="{StaticResource MenuButtonChromeStyle}"/>

     

     

     

     

    <Grid x:Name="ContentGrid">

     

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

     

    <ColumnDefinition Width="26"/>

     

     

     

     

    <ColumnDefinition Width="*"/>

     

     

     

     

    <ColumnDefinition Width="Auto"/>

     

     

     

     

    </Grid.ColumnDefinitions>

     

     

     

     

    <ContentPresenter x:Name="Icon" Content="{TemplateBinding Icon}" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center"/>

     

     

     

     

    <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 MButtonIconBackground_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 MButtonIconForeground_Normal}" Height="7" Margin="6 6 6 6" VerticalAlignment="Center" Width="4"/>

     

     

     

     

    </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="Windows7"/>

     

     

     

     

    <Border BorderBrush="{StaticResource MenuPopupOuterBorder}" BorderThickness="1" Background="{StaticResource MenuPopupBackground}">

     

     

     

     

    <Grid>

     

     

     

     

    <Rectangle Fill="{StaticResource MenuPopupIconsBackground}" HorizontalAlignment="Left" Width="27"/>

     

     

     

     

    <Grid HorizontalAlignment="Left" Margin="{StaticResource MenuPopupIconsSeparatorMargin}" Width="2">

     

     

     

     

    <Rectangle Fill="{StaticResource MenuPopupIconsSeparatorLeft}" HorizontalAlignment="Left" Width="1"/>

     

     

     

     

    <Rectangle Fill="{StaticResource MenuPopupIconsSeparatorRight}" HorizontalAlignment="Right" Width="1"/>

     

     

     

     

    </Grid>

     

     

     

     

    <ItemsPresenter Margin="1"/>

     

     

     

     

    </Grid>

     

     

     

     

    </Border>

     

     

     

     

    </Grid>

     

     

     

     

    </Grid>

     

     

     

     

    </Popup>

     

     

     

     

    </Grid>

     

     

     

     

    </ControlTemplate>

     

     

     

     

    <ControlTemplate x:Key="SubMenuItemTemplate" TargetType="telerik:RadMenuItem">

     

     

     

     

    <Grid x:Name="RootElement" Background="{TemplateBinding Background}" Margin="{StaticResource MenuSubItemMargin}">

     

     

     

     

    <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 MSplitButton_SpanCornerRadius}" RenderNormal="False" RenderHighlighted="{TemplateBinding IsHighlighted}" telerik:StyleManager.Theme="Windows7" Style="{StaticResource MenuButtonChromeStyle}"/>

     

     

     

     

    <Grid x:Name="ContentGrid">

     

     

     

     

    <Grid.ColumnDefinitions>

     

     

     

     

    <ColumnDefinition Width="26"/>

     

     

     

     

    <ColumnDefinition Width="*"/>

     

     

     

     

    </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}" HorizontalAlignment="Center" Visibility="Collapsed" VerticalAlignment="Center"/>

     

     

     

     

    <ContentPresenter x:Name="Icon" Content="{TemplateBinding Icon}" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center"/>

     

     

     

     

    <ContentPresenter x:Name="Content" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>

     

     

     

     

    </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="Transparent"/>

     

     

     

     

    <Setter Property="BorderBrush" Value="{StaticResource PanelBorderBrush}"/>

     

     

     

     

    <Setter Property="BorderThickness" Value="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="Telerik_Windows_Controls_Animation:AnimationManager.AnimationSelector">

     

    <Setter.Value>

    <Telerik_Windows_Controls_Animation:AnimationSelector>

    <Telerik_Windows_Controls_Animation:SlideAnimation AnimationName="Expand" Direction="In" SlideMode="Top" TargetElementName="PopupContentElement"/>

    </Telerik_Windows_Controls_Animation:AnimationSelector>

    </Setter.Value>

    </Setter>-->

     

     

     

    </Style>

     

  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 28 Jun 2011 Link to this post

    Hi Debranjan,

    You can find more information about the customization of the ButtonChrome in these forum posts: and in this KB article.The link is for WPF, but the statements remain true for Silverlight - the only difference is that in Silverlight we use VisualStates instead of Triggers.

    Hope this information is helpful.

    Regards,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top