|
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <!--#region 按钮样式-->
- <Style x:Key="ButtonStyle" TargetType="Button">
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Margin" Value="10,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- Background="Transparent"
- BorderBrush="#00c2f4"
- BorderThickness="2"
- CornerRadius="10">
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Background" Value="#3300c2f4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <Style x:Key="ImageButtonStyle" TargetType="Button">
- <Setter Property="Margin" Value="10" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Height" Value="80" />
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- BorderBrush="#00c2f4"
- BorderThickness="0"
- CornerRadius="0"
- Opacity="0.8">
-
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/系统名称.png" />
- </Border.Background>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="OKImageButtonStyle" TargetType="Button">
- <Setter Property="Margin" Value="10" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Height" Value="80" />
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- BorderBrush="#00c2f4"
- BorderThickness="0"
- CornerRadius="0"
- Opacity="0.8">
-
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/按钮背景蓝色.png" />
- </Border.Background>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="CancelImageButtonStyle" TargetType="Button">
- <Setter Property="Margin" Value="10" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Height" Value="80" />
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- BorderBrush="#00c2f4"
- BorderThickness="0"
- CornerRadius="0"
- Opacity="0.8">
-
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/按钮背景黄.png" />
- </Border.Background>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="FGImageButtonStyle" TargetType="Button">
- <Setter Property="Margin" Value="10" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Height" Value="80" />
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- BorderBrush="#00c2f4"
- BorderThickness="0"
- CornerRadius="0"
- Opacity="0.8">
-
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/发光按钮.png" />
- </Border.Background>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="RemoveImageButtonStyle" TargetType="Button">
- <Setter Property="Margin" Value="10" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Height" Value="80" />
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- BorderBrush="#00c2f4"
- BorderThickness="0"
- CornerRadius="0"
- Opacity="0.8">
-
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.1.png" />
- </Border.Background>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!--#region 移除按钮样式-->
- <ControlTemplate x:Key="RemoveButtonTemplate" TargetType="Button">
- <Border
- x:Name="br"
- Background="Transparent"
- BorderBrush="#FFDE7889"
- BorderThickness="2"
- CornerRadius="0">
- <StackPanel
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="/BPASmartClient.CustomResource;component/Fonts/#iconfont"
- FontSize="20"
- Text="" />
- <ContentControl
- Margin="10,0,5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding Content}"
- Foreground="{TemplateBinding Foreground}" />
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="br" Property="Background" Value="#22DE7889" />
- </Trigger>
-
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="br" Property="Background" Value="#22DE7889" />
- </Trigger>
-
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!--#endregion-->
-
- </ResourceDictionary>
|