<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"

                    >





    <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"/>
    
    
    <!--#region Color-->
    <SolidColorBrush x:Key="foreground" Color="#FFA2C2E8"/>
    <!--#endregion-->
    
    <!--#region ToggleButton-->
    <Style x:Key="StatusBtnStyle告警" TargetType="ToggleButton">
        <Style.Setters>
            <Setter Property="Width"  Value="36"></Setter>
            <Setter Property="Height" Value="32"></Setter>
            <Setter Property="Cursor" Value="Hand"></Setter>
            <Setter Property="IsChecked" Value="{Binding IsCheck,Mode=TwoWay}"></Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ToggleButton">
                        <Grid>
                            <Border x:Name="bd1" Visibility="Collapsed" Width="25" Height="13" HorizontalAlignment="Right" Panel.ZIndex="100" VerticalAlignment="Top" Margin="0,-5,-5,0" CornerRadius="3" Background="#33FF0000" >
                                <TextBlock Text="{Binding ListNum}"  Foreground="#FF2AA7D3" HorizontalAlignment="Center"></TextBlock>
                            </Border>
                            <Image x:Name="image1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"  Source="/BPASmartClient.CustomResource;component/Image/告警.png" Panel.ZIndex="0" Stretch="UniformToFill" ></Image>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsChecked" Value="true">
                                <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png"></Setter>
                            </Trigger>
                            <MultiDataTrigger>
                                <MultiDataTrigger.Conditions>
                                    <Condition Binding="{Binding IsCheck}" Value="true"></Condition>
                                    <Condition Binding="{Binding IsAlarm}" Value="true"></Condition>
                                </MultiDataTrigger.Conditions>
                                <MultiDataTrigger.Setters>
                                    <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png"></Setter>
                                    <Setter TargetName="bd1" Property="Visibility" Value="Visible"></Setter>
                                </MultiDataTrigger.Setters>
                            </MultiDataTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <!--#endregion-->
    
    <!--#region Image -->
    <Style x:Key="imagetop_L" TargetType="Image">
        <Style.Setters>
            <Setter Property="Height" Value="80"></Setter>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <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>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <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>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <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>
            <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>
            <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>
            <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>
            <Setter Property="VerticalAlignment" Value="Center"></Setter>
            <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>
            <Setter Property="VerticalAlignment" Value="Center"></Setter>
            <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>
            <Setter Property="Height" Value="24"></Setter>
            <Setter Property="Width" Value="70"></Setter>
            <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
            <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"></Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="timeImage" TargetType="Image">
        <Style.Setters>
            <Setter Property="Width" Value="20"></Setter>
            <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/日期1.png"></Setter>
        </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>
            <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>
        <Setter Property="Height" Value="12"></Setter>
    </Style>
    
    <Style x:Key="image告警" TargetType="Image">
        <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警.png"></Setter>
        <Setter Property="Height" Value="24"></Setter>
    </Style>
    
    <Style x:Key="image有告警" TargetType="Image">

        <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png"></Setter>
        <Setter Property="Height" Value="30"></Setter>

    </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>
            <Setter Property="Width" Value="300"></Setter>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>

            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png"/>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="bordertop矩形" TargetType="Border">
        <Style.Setters>
            <Setter Property="Height" Value="50"></Setter>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <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>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.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="border窗体背景3" TargetType="Border">
        <Style.Setters>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png" Stretch="Fill"  Opacity="1" Viewbox="0,0,1,1" TileMode="FlipX" 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>
            <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>
            <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>
            <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"></ImageBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="BorderThickness" Value="0,0,0,1"></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="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>
            <Setter Property="Height" Value="40"></Setter>
            <Setter Property="BorderThickness" Value="0"></Setter>
            <Setter Property="Margin" Value="5"></Setter>
            <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>

            <Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
            <Setter Property="VerticalAlignment"  Value="Stretch"></Setter>
            <Setter Property="BorderThickness" Value="0"></Setter>
            <Setter Property="Margin" Value="5"></Setter>

            <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>
            <Setter Property="VerticalAlignment"  Value="Top"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <Setter Property="Width" Value="92"></Setter>
            <Setter Property="Height" Value="46"></Setter>
            <Setter Property="BorderThickness" Value="0"></Setter>
            <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>
            <Setter Property="Height" Value="40"></Setter>
            <Setter Property="BorderThickness" Value="0"></Setter>
            <Setter Property="Margin" Value="5"></Setter>
            <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>
            <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
            <Setter Property="Height" Value="20"></Setter>
            <Setter Property="Width" Value="20"></Setter>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格底右.png" Stretch="None"/>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="border左下" TargetType="Border">
        <Style.Setters>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <Setter Property="VerticalAlignment" Value="Bottom"></Setter>
            <Setter Property="Height" Value="20"></Setter>
            <Setter Property="Width" Value="20"></Setter>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格底左.png" Stretch="None"/>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="border左上" TargetType="Border">
        <Style.Setters>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="Height" Value="90"></Setter>
            <Setter Property="Width" Value="20"></Setter>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格顶左.png" Stretch="None"/>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="border右上" TargetType="Border">
        <Style.Setters>
            <Setter Property="HorizontalAlignment" Value="Right"></Setter>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="Height" Value="20"></Setter>
            <Setter Property="Width" Value="20"></Setter>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/表格/表格顶右.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>
            <Setter Property="HorizontalContentAlignment"  Value="Center"></Setter>
            <Setter Property="Cursor" Value="Hand"></Setter>
            <Setter Property="Width" Value="65"></Setter>
            <Setter Property="Height" Value="24"></Setter>
            <Setter Property="HorizontalAlignment" Value="Right"></Setter>
            <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>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock">
                                                <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>
                            <StackPanel HorizontalAlignment="Center" Margin="5" Orientation="Horizontal">
                                <Image Source="/BPASmartClient.CustomResource;component/Image/退出.png" Width="16" ></Image>
                                <TextBlock Margin="5,0,0,0" x:Name="textBlock"  Text="{TemplateBinding Content}"  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="#A5FFFFFF" />
                            </StackPanel>

                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
        <Style.Setters>
            <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
            <Setter Property="HorizontalContentAlignment"  Value="Center"></Setter>
            <Setter Property="Cursor" Value="Hand"></Setter>
            <Setter Property="Width" Value="65"></Setter>
            <Setter Property="Height" Value="24"></Setter>
            <Setter Property="HorizontalAlignment" Value="Right"></Setter>
            <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>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock">
                                                <EasingColorKeyFrame KeyTime="0" Value="White"/>
                                            </ColorAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed"/>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <StackPanel HorizontalAlignment="Center" Margin="5" Orientation="Horizontal">
                                <Image Source="/BPASmartClient.CustomResource;component/Image/退出.png" Width="16" ></Image>
                                <TextBlock Margin="5,0,0,0" x:Name="textBlock"  Text="{TemplateBinding Content}"  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="#A5FFFFFF" />
                            </StackPanel>

                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style x:Key="CommonBtn_1" TargetType="Button">
        <Style.Setters>
            <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
            <Setter Property="Cursor" Value="Hand"></Setter>
            <Setter Property="Foreground" Value="{DynamicResource foreground}"></Setter>
            <Setter Property="Width" Value="65"></Setter>
            <Setter Property="Height" Value="24"></Setter>
            <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="12" BorderThickness="1" BorderBrush="#05408a" Background="Transparent">
                            <TextBlock x:Name="textBlock" FontSize="12" Text="{TemplateBinding Content}"  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{DynamicResource foreground}" />
                        </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>
            <Setter Property="Cursor" Value="Hand"></Setter>
            <Setter Property="Foreground" Value="{DynamicResource foreground}"></Setter>
            <Setter Property="Width" Value="69"></Setter>
            <Setter Property="Height" Value="25"></Setter>
            <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">
                            <TextBlock x:Name="textBlock" FontSize="12" Text="{TemplateBinding Content}"  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{DynamicResource foreground}" />
                        </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>
        <Setter Property="TextWrapping" Value="NoWrap"></Setter>
        <Setter Property="BorderBrush" Value="Transparent"></Setter>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="AllowDrop" Value="true"/>
        <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        <Setter Property="VerticalAlignment"  Value="Center"></Setter>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="Height" Value="35"></Setter>
        <Setter Property="Width" Value="auto"></Setter>
        <Setter Property="MinWidth" Value="200"></Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TextBox}">
                    <Themes:ListBoxChrome x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderFocused="{TemplateBinding IsKeyboardFocusWithin}" SnapsToDevicePixels="true">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <Image Margin="20,0,0,0" Tag="Search" Source="Image/搜索按钮.png" Cursor="Hand" Width="20" Height="Auto" HorizontalAlignment="Right" ></Image>
                            <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
                            <!--<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 Property="Background" TargetName="Bd" 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>
        <Setter Property="TextWrapping" Value="NoWrap"></Setter>
        <Setter Property="BorderBrush" Value="Transparent"></Setter>
        <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>
        <Setter Property="VerticalAlignment"  Value="Center"></Setter>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        <Setter Property="Height" Value="40"></Setter>
        <Setter Property="Width" Value="135"></Setter>
        <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 Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png" HorizontalAlignment="Left" Margin="10,3,3,3" Stretch="Uniform" Width="20"></Image>
                        </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="#a2c2e8"/>
            <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>
        <Setter Property="Foreground" Value="#FF58C7EE"></Setter>
        <Setter Property="VerticalAlignment" Value="Center"></Setter>
        <Setter Property="HorizontalAlignment"  Value="Center"></Setter>
    </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="#FF68D8FE"/>
        <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.ColumnSpan="4" Grid.RowSpan="2" />
                        <Border   BorderThickness="0" Grid.ColumnSpan="4"  CornerRadius="0" Grid.Row="2" Grid.RowSpan="2" Margin="0,0,0,0">
                        </Border>
                        <Image Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" Margin="0,5,0,0"  Grid.Column="1"  Grid.Row="0" Grid.RowSpan="2" Height="4" HorizontalAlignment="Left"></Image>
                        <Border x:Name="Header" Margin="30,0,0,0" Grid.Column="1" Height="30" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
                            <ContentPresenter ContentSource="Header" VerticalAlignment="Center" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </Border>
                        <ContentPresenter Grid.ColumnSpan="2" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--#endregion-->

    <!--空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" ContentSource="Header" Margin="{TemplateBinding Padding}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>