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

    <Style x:Key="StatusBtnStyle告警" TargetType="ToggleButton">
        <Style.Setters>
            <Setter Property="Width" Value="36" />
            <Setter Property="Height" Value="32" />
            <Setter Property="Cursor" Value="Hand" />
            <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ToggleButton">
                        <Grid>
                            <Border
                                x:Name="bd1"
                                Width="25"
                                Height="13"
                                Margin="0,-5,-5,0"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Top"
                                Panel.ZIndex="100"
                                Background="#33FF0000"
                                CornerRadius="3"
                                Visibility="Collapsed">
                                <TextBlock
                                    HorizontalAlignment="Center"
                                    Foreground="#FF2AA7D3"
                                    Text="{Binding ListNum}" />
                            </Border>
                            <Image
                                x:Name="image1"
                                Width="{TemplateBinding Width}"
                                Height="{TemplateBinding Height}"
                                Panel.ZIndex="0"
                                Source="../Images/告警.png"
                                Stretch="UniformToFill" />
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsChecked" Value="true">
                                <Setter TargetName="image1" Property="Source" Value="../Images/有告警.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="../Images/有告警.png" />
                                    <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
                                </MultiDataTrigger.Setters>
                            </MultiDataTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <Style TargetType="TextBlock">
        <Style.Setters>
            <Setter Property="Foreground" Value="#b5b6c4" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="FontSize" Value="12" />
        </Style.Setters>
    </Style>
    <Style x:Key="image文字" TargetType="Image">
        <Style.Setters>
            <Setter Property="Source" Value="../Images/文字.png" />
        </Style.Setters>
    </Style>
    <Style x:Key="image底部科技背景" TargetType="Image">
        <Style.Setters>
            <Setter Property="VerticalAlignment" Value="Bottom" />
            <Setter Property="Source" Value="../Images/底部背景.png" />
        </Style.Setters>
    </Style>
    <Style x:Key="image个人信息" TargetType="Image">
        <Style.Setters>
            <Setter Property="Source" Value="../Images/个人信息.png" />
        </Style.Setters>
    </Style>
    <Style x:Key="image维护" TargetType="Image">
        <Style.Setters>
            <Setter Property="Source" Value="../Images/维护.png" />
        </Style.Setters>
    </Style>

    <!--#region文字装饰-->
    <Style x:Key="image营销额" TargetType="Image">
        <Style.Setters>
            <Setter Property="VerticalAlignment" Value="Bottom" />
            <Setter Property="Source" Value="../Images/营销额.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="../Images/Title.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="../Images/圆角矩形 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="../Images/黑菠萝科技.png" />
        </Style.Setters>
    </Style>
    <!--#endregion-->
    <Style x:Key="MainBJ" TargetType="Image">
        <Style.Setters>
            <Setter Property="Source" Value="../Images/背景图片.png" />
        </Style.Setters>
    </Style>

    <Style x:Key="TitleImage" TargetType="Image">
        <Style.Setters>
            <Setter Property="Source" Value="../Images/hbl.ico" />
        </Style.Setters>
    </Style>

    <Style x:Key="timeImage" TargetType="Image">
        <Style.Setters>
            <Setter Property="Width" Value="20" />
            <Setter Property="Source" Value="../Images/日期1.png" />
        </Style.Setters>
    </Style>

    <Style x:Key="border主窗体背景" TargetType="Border">
        <Style.Setters>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="../Images/背景.png" />
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>


    <Style x:Key="FlatBackground" TargetType="Border">
        <Style.Setters>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="../Images/背景矢量/可视化后台.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="../Images/竖线.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="../Images/内部.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="../Images/矩形1.png" />
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <!--#region 背景矢量-->
    <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="../Images/背景矢量/矢量智能对象.png" />
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <!--#endregion-->

    <!--#region 顶部装饰-->
    <Style x:Key="border顶部背景" TargetType="Border">
        <Style.Setters>
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="../Images/顶部背景.png" />
                </Setter.Value>
            </Setter>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <ImageBrush ImageSource="../Images/顶部线条.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="../Images/标题背景.png" />
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
    <!--#endregion-->

    <!--#region 标题栏按钮样式-->
    <Style x:Key="TitleBarStyle" TargetType="Button">
        <Setter Property="Foreground" Value="White" />
        <Setter Property="FontSize" Value="20" />
        <Setter Property="FontFamily" Value="Image/#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>
    <!--#endregion-->

    <!--#region 人员信息-->
    <Style
        x:Key="TextBoxStyle人员"
        BasedOn="{x:Null}"
        TargetType="{x:Type TextBox}">
        <Setter Property="Foreground" Value="#A4EBF7" />
        <Setter Property="Background">
            <Setter.Value>
                <ImageBrush ImageSource="../Images/搜索框.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="../Images/搜索按钮.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>
    <!--#endregion-->

    <!--#region 退出按钮-->
    <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="../Images/退出按钮.png" />
                            </Border.Background>
                            <StackPanel
                                Margin="5"
                                HorizontalAlignment="Center"
                                Orientation="Horizontal">
                                <Image Width="16" Source="../Images/退出.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>
                                            <!--<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>
    <!--#endregion-->




    <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="../Images/搜索框.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="../Images/搜索按钮.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>

    <!--#region 用户名输入框样式-->
    <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-->

    <Style x:Key="image标题其他" TargetType="Image">
        <Setter Property="Source" Value="../Images/顶部矩形.png" />
        <Setter Property="Height" Value="12" />
    </Style>
    <Style x:Key="image告警" TargetType="Image">
        <Setter Property="Source" Value="../Images/告警.png" />
        <Setter Property="Height" Value="24" />
    </Style>
    <Style x:Key="image有告警" TargetType="Image">

        <Setter Property="Source" Value="../Images/有告警.png" />
        <Setter Property="Height" Value="30" />

    </Style>

    <Style x:Key="border圆角矩形" TargetType="Border">
        <Style.Setters>
            <Setter Property="BorderThickness" Value="3" />
            <Setter Property="Background">
                <Setter.Value>
                    <ImageBrush ImageSource="../Images/圆角矩形.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="../Images/不规则矩形.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="../Images/矩形.png" />
                </Setter.Value>
            </Setter>
        </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>


    <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.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="../Images/表格/矩形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>
</ResourceDictionary>