123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <LinearGradientBrush x:Key="BaseButton_Blue_BorderColor" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Color="#0c64f2" Offset="0.0" />
- <GradientStop Color=" #00358a" Offset="1.0" />
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="BaseButton_Blue_BorderColorMouseOver" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Color="#0090ff" Offset="0.0" />
- <GradientStop Color=" #00358a" Offset="1.0" />
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="BaseButton_Blue_BorderColorPressed" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Color="#0090d9" Offset="0.0" />
- <GradientStop Color=" #00358a" Offset="1.0" />
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="BaseButton_Blue_BackgroundColor" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Color="#004ecc" Offset="0.0" />
- <GradientStop Color="#004ecc" Offset="0.5" />
- <GradientStop Color="#002c73" Offset="1.0" />
- </LinearGradientBrush>
- <SolidColorBrush x:Key="BaseButton_Blue_BackgroundPressed" Color="#002c73" />
- <Style x:Key="BaseButton_Blue" TargetType="{x:Type Button}">
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="OverridesDefaultStyle" Value="True" />
- <Setter Property="BorderBrush" Value="{StaticResource BaseButton_Blue_BorderColor}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Background" Value="{StaticResource BaseButton_Blue_BackgroundColor}" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="Foreground" Value="#B8CBE6" />
- <Setter Property="Padding" Value="10" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="border" CornerRadius="5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Padding="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
- <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource BaseButton_Blue_BorderColorMouseOver}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="border" Property="Background" Value="{StaticResource BaseButton_Blue_BackgroundPressed}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource BaseButton_Blue_BorderColorPressed}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="Black" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|