You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
5.5 KiB
XML
102 lines
5.5 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Style x:Key="NormalButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Width" Value="50" />
|
|
<Setter Property="Height" Value="30" />
|
|
<Setter Property="Background" Value="#FF0ABEFF" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}" CornerRadius="4">
|
|
<Border Name="back"
|
|
Background="Transparent"
|
|
CornerRadius="4">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
</Border>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="back" Property="Background" Value="#11000000" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="IconButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Width" Value="40" />
|
|
<Setter Property="Height" Value="30" />
|
|
<Setter Property="Background" Value="#FF0ABEFF" />
|
|
<Setter Property="FontFamily" Value="{DynamicResource Iconfont}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}" CornerRadius="4">
|
|
<Border Name="back"
|
|
Background="Transparent"
|
|
CornerRadius="4">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
</Border>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="back" Property="Background" Value="#11000000" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="IconWithContentButtonStyle" TargetType="Button">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Height" Value="30" />
|
|
<Setter Property="Background" Value="#FF0ABEFF" />
|
|
<Setter Property="FontFamily" Value="{DynamicResource Iconfont}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}" CornerRadius="4">
|
|
<Border Name="back"
|
|
Background="Transparent"
|
|
CornerRadius="4">
|
|
<Grid HorizontalAlignment="Center">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Margin="5,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Text="{TemplateBinding Tag}"
|
|
FontFamily="{DynamicResource Iconfont}" />
|
|
<ContentPresenter Grid.Column="1"
|
|
Margin="0,0,10,0"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="True">
|
|
<Setter TargetName="back" Property="Background" Value="#FFF05005" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="back" Property="Background" Value="Gray" />
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="back" Property="Background" Value="#11000000" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |