|
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
-
- <!--#region Color-->
- <SolidColorBrush x:Key="foreground" Color="#a2c2e8" />
- <SolidColorBrush x:Key="borderBrush" Color="#FF074B92" />
- <SolidColorBrush x:Key="Titleforeground" Color="#FF07D7FF" />
- <SolidColorBrush x:Key="DataGridColumnHeaderColor" Color="#00c2f4" />
- <SolidColorBrush x:Key="LabelColor" Color="#FF00EEF3" />
- <SolidColorBrush x:Key="MainTitleforeground" Color="#feffff" />
- <SolidColorBrush x:Key="ButtonSelectForeground" Color="#4fade8" />
- <SolidColorBrush x:Key="ButtonUnSelectForeground" Color="#3afdff" />
- <SolidColorBrush x:Key="MeunSelectForeground" Color="#8f723c" />
- <SolidColorBrush x:Key="MeunUnSelectForeground" Color="White" />
-
- <!--<SolidColorBrush x:Key="foreground" Color="Red" />
- <SolidColorBrush x:Key="borderBrush" Color="Red" />
- <SolidColorBrush x:Key="Titleforeground" Color="Red" />
- <SolidColorBrush x:Key="LabelColor" Color="Red" />
- <SolidColorBrush x:Key="DataGridColumnHeaderColor" Color="Red"/>
- <SolidColorBrush x:Key="MainTitleforeground" Color="Red"/>
- <SolidColorBrush x:Key="ButtonSelectForeground" Color="Red"/>
- <SolidColorBrush x:Key="ButtonUnSelectForeground" Color="Red"/>
- <SolidColorBrush x:Key="MeunSelectForeground" Color="Red"/>
- <SolidColorBrush x:Key="MeunUnSelectForeground" Color="Red"/>-->
- <!--#endregion-->
-
- <!--#region Label-->
- <Style TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource LabelColor}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Padding" Value="5" />
- <Setter Property="HorizontalContentAlignment" Value="Left" />
- <Setter Property="VerticalContentAlignment" Value="Top" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Label}">
- <Border
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region ToggleButton-->
- <Style x:Key="StatusBtnStyle告警" TargetType="ToggleButton">
- <Style.Setters>
- <Setter Property="Width" Value="30" />
- <Setter Property="Height" Value="19" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Grid Cursor="Hand">
- <Border
- x:Name="bd1"
- Width="25"
- Height="13"
- Margin="0,-10,-5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Panel.ZIndex="100"
- Background="#2600CAFF"
- CornerRadius="3"
- Cursor="Hand"
- Visibility="Collapsed">
- <TextBlock
- HorizontalAlignment="Center"
- FontSize="8"
- Foreground="#FF00E6F7"
- Text="{Binding ListNum, Mode=TwoWay}" />
- <!-- -->
- </Border>
- <Image
- x:Name="image1"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Panel.ZIndex="0"
- RenderOptions.BitmapScalingMode="HighQuality"
- SnapsToDevicePixels="True"
- Source="/BPASmartClient.CustomResource;component/Image/告警/无告警.png"
- UseLayoutRounding="True" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
- <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/无告警.png" />
- <Setter TargetName="bd1" Property="Visibility" Value="Collapsed" />
- </Trigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsCheck}" Value="true" />
- <Condition Binding="{Binding IsAlarm}" Value="true" />
- </MultiDataTrigger.Conditions>
- <MultiDataTrigger.Setters>
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
- <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
- </MultiDataTrigger.Setters>
- </MultiDataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="StatusBtnStyle网络连接状态" TargetType="ToggleButton">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Grid Cursor="Hand">
- <Image
- x:Name="image1"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Panel.ZIndex="0"
- RenderOptions.BitmapScalingMode="HighQuality"
- SnapsToDevicePixels="True"
- Source="/BPASmartClient.CustomResource;component/Image/告警/Wifi_NO.png"
- UseLayoutRounding="True" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
- </Trigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsCheck}" Value="true" />
- <Condition Binding="{Binding IsAlarm}" Value="true" />
- </MultiDataTrigger.Conditions>
- <MultiDataTrigger.Setters>
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
- </MultiDataTrigger.Setters>
- </MultiDataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <!--#endregion-->
-
- <!--#region Image-->
- <ImageBrush x:Key="imageBJ" ImageSource="/BPASmartClient.CustomResource;component/Image/图层1.png" />
- <ImageBrush x:Key="image1" ImageSource="/BPASmartClient.CustomResource;component/Image/shape.png" />
- <ImageBrush x:Key="image2" ImageSource="/BPASmartClient.CustomResource;component/Image/shape1.png" />
-
- <Style TargetType="Image">
- <Style.Setters>
- <Setter Property="UseLayoutRounding" Value="True" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_工艺流程" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/工艺流程.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_维护" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="22" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_功能列表" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="22" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_产品制作" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="22" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_L" TargetType="Image">
- <Style.Setters>
- <Setter Property="Height" Value="80" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_Title" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="250" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/自动化产线上位机控制系统.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_矩形" TargetType="Image">
- <Style.Setters>
-
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop1" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image营销额" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/营销额.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetitletext" TargetType="Image">
- <Style.Setters>
- <Setter Property="Height" Value="20" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/titletext.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image圆角矩形" TargetType="Image">
- <Style.Setters>
- <Setter Property="Height" Value="33" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/圆角矩形 4.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image黑菠萝科技" TargetType="Image">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Height" Value="24" />
- <Setter Property="Width" Value="70" />
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/黑菠萝科技.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="MainBJ" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/背景图片.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="TitleImage" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/hbl.ico" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="timeImage" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/日期1.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image文字" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/文字.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image底部科技背景" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/底部背景.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image个人信息" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/个人信息.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image维护" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image标题其他" TargetType="Image">
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部矩形.png" />
- <Setter Property="Height" Value="12" />
- </Style>
-
- <Style x:Key="image告警" TargetType="Image">
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警.png" />
- <Setter Property="Height" Value="24" />
- </Style>
-
- <Style x:Key="image有告警" TargetType="Image">
-
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png" />
- <Setter Property="Height" Value="30" />
-
- </Style>
- <!--#endregion-->
-
- <!--#region Border-->
- <Style x:Key="FromBJ" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="button_no" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_No.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="button_select" TargetType="Border">
- <Style.Setters>
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_Select.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="bordertopL" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="80" />
- <Setter Property="Width" Value="300" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border阴影边框" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="50" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border阴影边框扩展" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border边角" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边角.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="bordertop矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="bordertopTitle" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="100" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="borderFromTitle" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/tittle.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景1" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景1.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景2" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景2.png" Stretch="Uniform" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="borderPop_bg" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border背景two" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景2.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景3" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush
- ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png"
- Opacity="1"
- Stretch="Fill"
- TileMode="FlipX"
- Viewbox="0,0,1,1"
- ViewboxUnits="RelativeToBoundingBox" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景4" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景4.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景5" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景5.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景6" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景6.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景7" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景7.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border圆角矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="BorderThickness" Value="3" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/圆角矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border不规则矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="BorderThickness" Value="0.5" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/不规则矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border顶部背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部背景.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="BorderBrush">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="BorderThickness" Value="0,0,0,1" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="border标题背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/标题背景.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border主窗体背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border界面背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景2.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border顶部标题背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border竖线" TargetType="Border">
- <Style.Setters>
- <Setter Property="Width" Value="1" />
- <Setter Property="Height" Value="40" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Margin" Value="5" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/竖线.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border内部" TargetType="Border">
- <Style.Setters>
- <Setter Property="Width" Value="320" />
-
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Margin" Value="5" />
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/内部.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border矩形2" TargetType="Border">
- <Style.Setters>
- <Setter Property="Margin" Value="0,0,10,0" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Width" Value="92" />
- <Setter Property="Height" Value="46" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形1.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border矢量智能对象" TargetType="Border">
- <Style.Setters>
- <Setter Property="Width" Value="1" />
- <Setter Property="Height" Value="40" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Margin" Value="5" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景矢量/矢量智能对象.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border边框" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形样式.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border边框2" TargetType="Border">
- <Style.Setters>
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边框效果2.png" Stretch="Fill" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border右下" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Width" Value="22" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右下.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border左下" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Height" Value="22" />
- <Setter Property="Width" Value="23" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左下.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border左上" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Height" Value="22" />
- <Setter Property="Width" Value="23" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左边.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border右上" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Width" Value="22" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右上.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <!--#endregion-->
-
- <!--#region Button-->
- <Style x:Key="TitleBarStyle" TargetType="Button">
- <Setter Property="Foreground" Value="White" />
- <Setter Property="FontSize" Value="20" />
- <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/#iconfont" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Name="TitleBarBr" Background="Transparent">
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Background" Value="#22ffffff" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="CommonBtnStyle退出按钮" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Width" Value="65" />
- <Setter Property="Height" Value="24" />
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <!--<ControlTemplate.Resources>
- <Storyboard x:Key="OnMouseEnter1">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>-->
- <Border x:Name="BD" CornerRadius="2">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/退出按钮.png" />
- </Border.Background>
- <StackPanel
- Margin="5"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
- <TextBlock
- x:Name="textBlock"
- Margin="5,0,0,0"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- FontSize="14"
- Foreground="#A5FFFFFF"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
- <EasingColorKeyFrame KeyTime="0" Value="White" />
- </ColorAnimationUsingKeyFrames>
- <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0" Value="#FF135EC2"/>
- </ColorAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="BD">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.007"/>
- </DoubleAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0" Value="#FF139DDB"/>
- </ColorAnimationUsingKeyFrames>-->
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed" />
- <VisualState x:Name="Disabled" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Width" Value="65" />
- <Setter Property="Height" Value="24" />
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" CornerRadius="2">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/Tab/Tab_NoWZBJ.png" />
- </Border.Background>
- <StackPanel
- Margin="5"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
- <TextBlock
- x:Name="textBlock"
- Margin="5,0,0,0"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Foreground="#A5FFFFFF"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
- <EasingColorKeyFrame KeyTime="0" Value="White" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed" />
- <VisualState x:Name="Disabled" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_1" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="Width" Value="65" />
- <Setter Property="Height" Value="24" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <ControlTemplate.Resources>
- <Storyboard x:Key="OnMouseEnter1">
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB" />
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>
- <Border
- x:Name="BD"
- Background="Transparent"
- BorderBrush="#05408a"
- BorderThickness="1"
- CornerRadius="12">
- <TextBlock
- x:Name="textBlock"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- FontSize="12"
- Foreground="{DynamicResource foreground}"
- Text="{TemplateBinding Content}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background" Value="#009dff" />
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource foreground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background" Value="#ff55" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" Cursor="Hand">
- <StackPanel
- HorizontalAlignment="Center"
- Cursor="Hand"
- Orientation="Horizontal">
- <!--<Border Width="16" Margin="5">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
- </Border.Background>
- </Border>-->
- <TextBlock
- x:Name="textBlock"
- Margin="10,0,10,0"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="{DynamicResource ButtonSelectForeground}"
- Text="{TemplateBinding Content}" />
- <!-- Text="{TemplateBinding Content}" -->
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_返回" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Width" Value="68" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" Cursor="Hand">
- <StackPanel
- Margin="5,0,10,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Border Width="16" Margin="5">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
- </Border.Background>
- </Border>
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="{DynamicResource ButtonSelectForeground}"
- Text="{TemplateBinding Content}" />
- <!-- Text="{TemplateBinding Content}" -->
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style TargetType="{x:Type Separator}">
- <Setter Property="Height" Value="1" />
- <Setter Property="Margin" Value="0,4,0,4" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Separator}">
- <Border>
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
- </Border.Background>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="CommonBtn_功能节点" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Margin" Value="10,5,10,5" />
-
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Orientation="Horizontal">
- <Image
- Width="24"
- Margin="5"
- Source="/BPASmartClient.CustomResource;component/Image/临时模板.png" />
- <TextBlock
- x:Name="textBlock"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="12"
- Foreground="#00c1c3"
- Text="{TemplateBinding Content}" />
- <TextBlock
- x:Name="tex2tBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_产品制作" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Margin="5">
- <Image
- Width="24"
- Margin="5,10,5,0"
- Source="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- <Separator Margin="0,10,0,0" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
-
- <Style x:Key="CommonBtn_功能列表" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Margin="5">
- <Image
- Width="24"
- Margin="5,10,5,0"
- Source="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- <Separator Margin="0,10,0,0" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_维护" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Margin="5">
- <Image
- Width="24"
- Margin="5,10,5,0"
- Source="/BPASmartClient.CustomResource;component/Image/维护.png" />
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- <Separator Margin="0,10,0,0" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="Comm8" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="Width" Value="69" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <!--<ControlTemplate.Resources>
- <Storyboard x:Key="OnMouseEnter1">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>-->
- <Border x:Name="BD" Cursor="Hand">
- <TextBlock
- x:Name="textBlock"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- FontSize="12"
- Foreground="{DynamicResource foreground}"
- Text="{TemplateBinding Content}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="White" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="#FFD7DCE0" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <!--#endregion-->
-
- <!--#region TextBox-->
- <Style
- x:Key="TextBoxStyle人员"
- BasedOn="{x:Null}"
- TargetType="{x:Type TextBox}">
- <Setter Property="Foreground" Value="#A4EBF7" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="FontSize" Value="14" />
- <Setter Property="TextWrapping" Value="NoWrap" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Height" Value="35" />
- <Setter Property="Width" Value="auto" />
- <Setter Property="MinWidth" Value="200" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Themes:ListBoxChrome
- x:Name="Bd"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
- RenderMouseOver="{TemplateBinding IsMouseOver}"
- SnapsToDevicePixels="true">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Image
- Width="20"
- Height="Auto"
- Margin="20,0,0,0"
- HorizontalAlignment="Right"
- Cursor="Hand"
- Source="Image/搜索按钮.png"
- Tag="Search" />
- <ScrollViewer
- x:Name="PART_ContentHost"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- <!--<local:ButtonEx Grid.Column="1" ButtonType="Icon" Icon="Images/search.png" Cursor="Hand" Margin="3" Width="{Binding ElementName=PART_ContentHost, Path=Height}" Height="{Binding ElementName=PART_ContentHost, Path=Height}" Click="Button_SearchMBK_Click"/>-->
- </Grid>
- </Themes:ListBoxChrome>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
-
- <Style
- x:Key="TextBoxStyle搜索框"
- BasedOn="{x:Null}"
- TargetType="{x:Type TextBox}">
- <Setter Property="Foreground" Value="#A4EBF7" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="TextWrapping" Value="NoWrap" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Margin" Value="10,0,0,0" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="CaretBrush" Value="Aqua" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Width" Value="135" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="Bd" VerticalAlignment="Center">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
- </Border.Background>
-
- <Grid>
- <ScrollViewer
- x:Name="PART_ContentHost"
- VerticalAlignment="Center"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" />
-
- <Image
- Width="20"
- Margin="10,3,3,3"
- HorizontalAlignment="Left"
- Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png"
- Stretch="Uniform" />
- </Grid>
-
- </Border>
-
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
- <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <!--#endregion-->
-
- <!--#region UserNameTextBoxStyle-->
- <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
- <GradientStop Offset="0.05" Color="#ABADB3" />
- <GradientStop Offset="0.07" Color="#E2E3EA" />
- <GradientStop Offset="1" Color="#E3E9EF" />
- </LinearGradientBrush>
-
- <Style
- x:Key="UserNameTextBoxStyle"
- BasedOn="{x:Null}"
- TargetType="{x:Type TextBox}">
- <Setter Property="Foreground" Value="White" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="CaretBrush" Value="Aqua" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Width" Value="135" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="Bd" VerticalAlignment="Center">
- <Grid>
- <ScrollViewer
- x:Name="PART_ContentHost"
- VerticalAlignment="Center"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" />
-
- <Path
- x:Name="p1"
- Stroke="#7720FDFA"
- StrokeThickness="1">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="1, 1">
- <LineSegment Point="133,1" />
- <LineSegment Point="133,38" />
- <LineSegment Point="1,38" />
- <LineSegment Point="1,1" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- Name="p2"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="10, 1">
- <LineSegment Point="1,1" />
- <LineSegment Point="1,10" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- Name="p3"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="125, 1">
- <LineSegment Point="133,1" />
- <LineSegment Point="133,10" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- x:Name="p4"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="125, 38">
- <LineSegment Point="133,38" />
- <LineSegment Point="133,30" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- x:Name="p5"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="1, 30">
- <LineSegment Point="1,38" />
- <LineSegment Point="10,38" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
- </Grid>
-
- </Border>
-
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
- <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
- <Setter TargetName="p1" Property="Stroke" Value="#aa20FDFA" />
- <Setter TargetName="p2" Property="Stroke" Value="Aqua" />
- <Setter TargetName="p3" Property="Stroke" Value="Aqua" />
- <Setter TargetName="p4" Property="Stroke" Value="Aqua" />
- <Setter TargetName="p5" Property="Stroke" Value="Aqua" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
- <Setter TargetName="p1" Property="Stroke" Value="#aaFFCA51" />
- <Setter TargetName="p2" Property="Stroke" Value="#FFCA51" />
- <Setter TargetName="p3" Property="Stroke" Value="#FFCA51" />
- <Setter TargetName="p4" Property="Stroke" Value="#FFCA51" />
- <Setter TargetName="p5" Property="Stroke" Value="#FFCA51" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <!--#endregion-->
-
- <!--#region TextBlock-->
- <Style TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="20" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="Title" TargetType="TextBlock">
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="#FF58C7EE" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
-
- <Style x:Key="数码管Text" TargetType="TextBlock">
- <Setter Property="FontFamily" Value="../Fonts/#Quartz M" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
- <!--#endregion-->
-
- <!--#region GroupBox-->
- <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
- <Style TargetType="{x:Type GroupBox}">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{DynamicResource Titleforeground}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type GroupBox}">
- <Grid SnapsToDevicePixels="true">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="6" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="6" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="6" />
- </Grid.RowDefinitions>
- <Rectangle Grid.RowSpan="2" Grid.ColumnSpan="4" />
- <Border
- Grid.Row="2"
- Grid.RowSpan="2"
- Grid.ColumnSpan="4"
- Margin="0,0,0,0"
- BorderThickness="0"
- CornerRadius="0" />
- <Image
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Height="4"
- Margin="0,5,0,0"
- HorizontalAlignment="Left"
- Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" />
- <Border
- x:Name="Header"
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Height="30"
- Margin="30,0,0,0"
- Padding="3,1,3,0">
- <ContentPresenter
- VerticalAlignment="Center"
- ContentSource="Header"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ContentPresenter
- Grid.Row="2"
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Margin="{TemplateBinding Padding}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region 空MenuHeader-->
- <Style x:Key="MenuItem_NonStyle" TargetType="{x:Type MenuItem}">
- <Setter Property="Height" Value="Auto" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type MenuItem}">
- <Grid Margin="1">
- <ContentPresenter
- x:Name="Presenter"
- Margin="{TemplateBinding Padding}"
- ContentSource="Header" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- </ResourceDictionary>
|