<Style TargetType="Button"
x:Key="LT_ButtonStyle">
<Setter Property="Background"
Value="#FF1F3B53" />
<Setter Property="Foreground"
Value="#FF000000" />
<Setter Property="Padding"
Value="3" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="BorderBrush">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="#FFA3AEB9"
Offset="0" />
<GradientStop Color="#FF8399A9"
Offset="0.375" />
<GradientStop Color="#FF718597"
Offset="0.375" />
<GradientStop Color="#FF617584"
Offset="1" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="MouseOver">
<Storyboard>
<DoubleAnimation Duration="0"
To="1"
Storyboard.TargetProperty="Opacity"
Storyboard.TargetName="BackgroundAnimation" />
<ColorAnimation Duration="0"
To="#F2FFFFFF"
Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"
Storyboard.TargetName="BackgroundGradient" />
<ColorAnimation Duration="0"
To="#CCFFFFFF"
Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)"
Storyboard.TargetName="BackgroundGradient" />
<ColorAnimation Duration="0"
To="#7FFFFFFF"
Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)"
Storyboard.TargetName="BackgroundGradient" />
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)"
Storyboard.TargetName="FocusVisualElement">
<EasingColorKeyFrame KeyTime="0"
Value="#FF757AA1" />
<EasingColorKeyFrame KeyTime="0:0:0.5"
Value="#FF181BF1" />
</ColorAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Rectangle.RadiusX)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="8" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="8" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="0" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="0.196" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="0.298" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Pressed">
<Storyboard>
<ColorAnimation Duration="0"
To="#FF6DBDD1"
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
Storyboard.TargetName="Background" />
<DoubleAnimation Duration="0"
To="1"
Storyboard.TargetProperty="Opacity"
Storyboard.TargetName="BackgroundAnimation" />
<ColorAnimation Duration="0"
To="#D8FFFFFF"
Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)"
Storyboard.TargetName="BackgroundGradient" />
<ColorAnimation Duration="0"
To="#C6FFFFFF"
Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"
Storyboard.TargetName="BackgroundGradient" />
<ColorAnimation Duration="0"
To="#8CFFFFFF"
Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)"
Storyboard.TargetName="BackgroundGradient" />
<ColorAnimation Duration="0"
To="#3FFFFFFF"
Storyboard.TargetProperty="(Rectangle.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)"
Storyboard.TargetName="BackgroundGradient" />
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="0" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="0.196" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="0.222" />
</DoubleAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)"
Storyboard.TargetName="FocusVisualElement">
<EasingColorKeyFrame KeyTime="0"
Value="#FF757AA1" />
<EasingColorKeyFrame KeyTime="0:0:0.5"
Value="#FF4E4899" />
</ColorAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="1.1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)"
Storyboard.TargetName="FocusVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="0.9" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="1.5" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Disabled">
<Storyboard>
<DoubleAnimation Duration="0"
To=".55"
Storyboard.TargetProperty="Opacity"
Storyboard.TargetName="DisabledVisualElement" />
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"
Storyboard.TargetName="DisabledVisualElement">
<EasingColorKeyFrame KeyTime="0"
Value="White" />
<EasingColorKeyFrame KeyTime="0:0:0.5"
Value="#FF97989D" />
</ColorAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)"
Storyboard.TargetName="DisabledVisualElement">
<EasingDoubleKeyFrame KeyTime="0"
Value="0.385" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5"
Value="0.159" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
<VisualStateGroup x:Name="FocusStates">
<VisualState x:Name="Focused">
<Storyboard>
<DoubleAnimation Duration="0"
To="1"
Storyboard.TargetProperty="Opacity"
Storyboard.TargetName="FocusVisualElement" />
</Storyboard>
</VisualState>
<VisualState x:Name="Unfocused" />
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Border x:Name="Background"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="White"
CornerRadius="3">
<Grid Background="{TemplateBinding Background}"
Margin="1">
<Border x:Name="BackgroundAnimation"
Background="#FF448DCA"
Opacity="0" />
<Rectangle x:Name="BackgroundGradient">
<Rectangle.Fill>
<LinearGradientBrush EndPoint=".7,1"
StartPoint=".7,0">
<GradientStop Color="#FFFFFFFF"
Offset="0" />
<GradientStop Color="#F9FFFFFF"
Offset="0.375" />
<GradientStop Color="#E5FFFFFF"
Offset="0.625" />
<GradientStop Color="#C6FFFFFF"
Offset="1" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Grid>
</Border>
<ContentPresenter x:Name="contentPresenter"
Opacity="100"
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
Margin="{TemplateBinding Padding}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
<Rectangle x:Name="DisabledVisualElement"
IsHitTestVisible="false"
Opacity="0"
RadiusY="3"
RadiusX="3">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1"
MappingMode="RelativeToBoundingBox"
StartPoint="0.5,0">
<GradientStop Color="Black"
Offset="0" />
<GradientStop Color="White"
Offset="1" />
<GradientStop Color="#FF3A3A3C"
Offset="0.385" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Rectangle x:Name="FocusVisualElement"
IsHitTestVisible="false"
Margin="1"
Opacity="0.845"
RadiusY="12"
RadiusX="8"
Stroke="#FF0F1862"
StrokeThickness="2"
RenderTransformOrigin="0.5,0.5">
<Rectangle.RenderTransform>
<CompositeTransform />
</Rectangle.RenderTransform>
<Rectangle.Effect>
<DropShadowEffect BlurRadius="8"
Opacity="0.85"
ShadowDepth="4" />
</Rectangle.Effect>
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1"
MappingMode="RelativeToBoundingBox"
StartPoint="0.5,0">
<GradientStop Color="#FF565764" />
<GradientStop Color="#FF9DA6EF"
Offset="1" />
<GradientStop Color="#FF757AA1"
Offset="0.196" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
|