|
|
@ -1,5 +1,37 @@
|
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
|
|
|
|
<!--引入字体文件-->
|
|
|
|
|
|
|
|
<Style x:Key="IconStyle" TargetType="TextBlock">
|
|
|
|
|
|
|
|
<Setter Property="FontFamily" Value="/STranslate;component/Images/#iconfont"/>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--主题切换-->
|
|
|
|
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateTheme"
|
|
|
|
|
|
|
|
TargetType="Button">
|
|
|
|
|
|
|
|
<Border x:Name="border"
|
|
|
|
|
|
|
|
CornerRadius="5"
|
|
|
|
|
|
|
|
Padding="5"
|
|
|
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
|
|
|
Margin="8,5,0,0"
|
|
|
|
|
|
|
|
Width="30"
|
|
|
|
|
|
|
|
Height="30">
|
|
|
|
|
|
|
|
<TextBlock Style="{StaticResource IconStyle}"
|
|
|
|
|
|
|
|
FontSize="18"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
Text=""
|
|
|
|
|
|
|
|
Foreground="WhiteSmoke"/>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
|
|
|
|
<Setter TargetName="border" Property="Background" Value="#47484c"></Setter>
|
|
|
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
<Trigger Property="IsPressed" Value="true">
|
|
|
|
|
|
|
|
<Setter TargetName="border" Property="Background" Value="#35333c"></Setter>
|
|
|
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--置顶-->
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateTopmost"
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateTopmost"
|
|
|
|
TargetType="Button">
|
|
|
|
TargetType="Button">
|
|
|
|
<Border x:Name="border"
|
|
|
|
<Border x:Name="border"
|
|
|
@ -8,8 +40,11 @@
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="8,5,0,0"
|
|
|
|
Margin="8,5,0,0"
|
|
|
|
MaxHeight="30">
|
|
|
|
MaxHeight="30">
|
|
|
|
<Image Height="20"
|
|
|
|
<TextBlock Style="{StaticResource IconStyle}"
|
|
|
|
Source="pack://application:,,,/STranslate;component/Images/Button_Default/topmost.png"/>
|
|
|
|
FontSize="21"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
Text=""
|
|
|
|
|
|
|
|
Foreground="#3478f6"/>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
@ -20,6 +55,8 @@
|
|
|
|
</Trigger>
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--取消置顶-->
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateUnTopmost"
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateUnTopmost"
|
|
|
|
TargetType="Button">
|
|
|
|
TargetType="Button">
|
|
|
|
<Border x:Name="border"
|
|
|
|
<Border x:Name="border"
|
|
|
@ -28,8 +65,11 @@
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="8,5,0,0"
|
|
|
|
Margin="8,5,0,0"
|
|
|
|
MaxHeight="30">
|
|
|
|
MaxHeight="30">
|
|
|
|
<Image Height="20"
|
|
|
|
<TextBlock Style="{StaticResource IconStyle}"
|
|
|
|
Source="pack://application:,,,/STranslate;component/Images/Button_Default/untopmost.png"/>
|
|
|
|
FontSize="22"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
Text=""
|
|
|
|
|
|
|
|
Foreground="WhiteSmoke"/>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
@ -40,12 +80,18 @@
|
|
|
|
</Trigger>
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--普通复制-->
|
|
|
|
<ControlTemplate x:Key="ButtonTemplate" TargetType="Button">
|
|
|
|
<ControlTemplate x:Key="ButtonTemplate" TargetType="Button">
|
|
|
|
<Border x:Name="border"
|
|
|
|
<Border x:Name="border"
|
|
|
|
CornerRadius="5"
|
|
|
|
CornerRadius="5"
|
|
|
|
Padding="4"
|
|
|
|
Padding="4"
|
|
|
|
MaxHeight="25">
|
|
|
|
MaxHeight="25">
|
|
|
|
<Image Source="pack://application:,,,/STranslate;component/Images/Button_Default/copy_default.png"/>
|
|
|
|
<TextBlock Style="{StaticResource IconStyle}"
|
|
|
|
|
|
|
|
FontSize="18"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
Text=""
|
|
|
|
|
|
|
|
Foreground="#515151"/>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
@ -57,12 +103,17 @@
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--蛇形复制-->
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateSnakeCopy" TargetType="Button">
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateSnakeCopy" TargetType="Button">
|
|
|
|
<Border x:Name="border"
|
|
|
|
<Border x:Name="border"
|
|
|
|
CornerRadius="5"
|
|
|
|
CornerRadius="5"
|
|
|
|
Padding="4"
|
|
|
|
Padding="4"
|
|
|
|
MaxHeight="25">
|
|
|
|
MaxHeight="25">
|
|
|
|
<Image Source="pack://application:,,,/STranslate;component/Images/Button_Default/copy_snake.png"/>
|
|
|
|
<TextBlock Style="{StaticResource IconStyle}"
|
|
|
|
|
|
|
|
FontSize="18"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
Text=""
|
|
|
|
|
|
|
|
Foreground="#515151"/>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
@ -74,12 +125,17 @@
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--小驼峰复制-->
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateSmallHumpCopy" TargetType="Button">
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateSmallHumpCopy" TargetType="Button">
|
|
|
|
<Border x:Name="border"
|
|
|
|
<Border x:Name="border"
|
|
|
|
CornerRadius="5"
|
|
|
|
CornerRadius="5"
|
|
|
|
Padding="4"
|
|
|
|
Padding="4"
|
|
|
|
MaxHeight="25">
|
|
|
|
MaxHeight="25">
|
|
|
|
<Image Source="pack://application:,,,/STranslate;component/Images/Button_Default/copy_small_hump.png"/>
|
|
|
|
<TextBlock Style="{StaticResource IconStyle}"
|
|
|
|
|
|
|
|
FontSize="18"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
Text=""
|
|
|
|
|
|
|
|
Foreground="#515151"/>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
@ -91,12 +147,17 @@
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--大驼峰复制-->
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateLargeHumpCopy" TargetType="Button">
|
|
|
|
<ControlTemplate x:Key="ButtonTemplateLargeHumpCopy" TargetType="Button">
|
|
|
|
<Border x:Name="border"
|
|
|
|
<Border x:Name="border"
|
|
|
|
CornerRadius="5"
|
|
|
|
CornerRadius="5"
|
|
|
|
Padding="4"
|
|
|
|
Padding="4"
|
|
|
|
MaxHeight="25">
|
|
|
|
MaxHeight="25">
|
|
|
|
<Image Source="pack://application:,,,/STranslate;component/Images/Button_Default/copy_large_hump.png"/>
|
|
|
|
<TextBlock Style="{StaticResource IconStyle}"
|
|
|
|
|
|
|
|
FontSize="18"
|
|
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
|
|
Text=""
|
|
|
|
|
|
|
|
Foreground="#515151"/>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
|