欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ResourceDictionary的使用

程序员文章站 2022-06-07 10:52:41
...

资源字典的意义在于:

 

1.高效,可以通过资源定义对象,并在标记的多个地方使用,这会精简代码

 

2.可维护性,通过资源使用低级的格式化细节,如字号,并将它们移到便于修改的*位置。在XAML中创建资源相当于在代码中创建常亮

 

3.适应性,一旦某些特定信息与应用程序的其他部分分离开来,并放在资源中,那么可以动态的修改这些信息,如修改皮肤或者语言

 

 

————————————————

版权声明:本文为CSDN博主「Bird鸟人」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/wcc27857285/article/details/90943244

 

<ResourceDictionary x:Class="TYHTGLPT.Theme.Style"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:convert="clr-namespace:TYHTGLPT"
                    xmlns:kj="clr-namespace:TYHTGLPT.控件"
                    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
                     xmlns:bc="clr-namespace:BKControl.BasisControl;assembly=BKControl"
                     xmlns:ac="clr-namespace:BKControl.AdvancedControl;assembly=BKControl"
                    xmlns:xce="http://schemas.xceed.com/wpf/xaml/toolkit"
                    xmlns:bk="clr-namespace:BKControl;assembly=BKControl">
    <convert:RowsConverter x:Key="rsc"/>
    <!--错误文本颜色-->
    <SolidColorBrush x:Key="Error.Foreground" Color="#e04343"/>
    <!--统一颜色-->
    <SolidColorBrush x:Key="Window.Title.Color" Color="#20A0FF"/>
    <SolidColorBrush x:Key="Window.Border.Color" Color="#9b9b9b"/>
    <SolidColorBrush x:Key="Window.Foreground.Color" Color="White"/>
    <SolidColorBrush x:Key="Window.Border.Background" Color="#E4EBF3"/>
    <SolidColorBrush x:Key="DataList.Footer.Color" Color="#dedee4"/>
    
    <SolidColorBrush x:Key="Button.Window.OK.Color" Color="#53BA00"/>
    <SolidColorBrush x:Key="Button.Dialog.OK.Color" Color="#2DCC70"/>
    <SolidColorBrush x:Key="Button.Login.Color" Color="#2DCC70"/>
    <SolidColorBrush x:Key="TextBox.Static.Border" Color="#009AFF"/>
    <SolidColorBrush x:Key="TextBlock.Title.Color" Color="#333333"/>
    <SolidColorBrush x:Key="TextBlock.Content.Color" Color="#666666"/>
    <SolidColorBrush x:Key="TextBlock.ToolTip.Color" Color="#999999"/>
    <SolidColorBrush x:Key="TextBox.Disabled.Border" Color="#D3DCE6"/>
    <SolidColorBrush x:Key="Expander.Static.Foreground" Color="#424D5F"/>
    <LinearGradientBrush x:Key="LoginButtonColor" EndPoint="0.5,1"  StartPoint="0.5,0">
        <GradientStop Color="#9ae44e" Offset="0"/>
        <GradientStop Color="#76cc1e" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SendCodeButtonColor" EndPoint="0.5,1"  StartPoint="0.5,0">
        <GradientStop Color="#f5f6f7" Offset="0"/>
        <GradientStop Color="#e2e5e7" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SelelctButtonColor" EndPoint="0.5,1"  StartPoint="0.5,0">
        <GradientStop Color="#fffae5" Offset="0"/>
        <GradientStop Color="#ffe891" Offset="1"/>
    </LinearGradientBrush>
    <Style x:Key="DateTimePickerStyle1" TargetType="{x:Type xce:DateTimePicker}">
        <Setter Property="Background" Value="{DynamicResource {x:Static  SystemColors.WindowBrushKey}}"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static  SystemColors.WindowTextBrushKey}}"/>
        <Setter Property="BorderBrush" Value="{StaticResource  TextBox.Disabled.Border}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="HorizontalContentAlignment" Value="Right"/>
        <Setter Property="TextAlignment" Value="Right"/>
        <Setter Property="TimeWatermarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Content="{Binding}" Foreground="{DynamicResource  {x:Static SystemColors.GrayTextBrushKey}}" Focusable="False" Margin="0,0,3,0"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="WatermarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Content="{Binding}" Foreground="{DynamicResource  {x:Static SystemColors.GrayTextBrushKey}}" Focusable="False" Margin="0,0,3,0"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CalendarWidth" Value="178"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type xce:DateTimePicker}">
                    <Border Name="bor" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" SnapsToDevicePixels="True">
                        <Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <xce:WatermarkTextBox x:Name="PART_TextBox"  AcceptsReturn="False" BorderThickness="0" Background="Transparent"  Foreground="{TemplateBinding Foreground}" FontWeight="{TemplateBinding  FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontStretch="{TemplateBinding  FontStretch}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding  FontFamily}" HorizontalContentAlignment="{TemplateBinding  HorizontalContentAlignment}" IsTabStop="True" IsUndoEnabled="True" MinWidth="20"  Padding="{TemplateBinding Padding}" TextAlignment="{TemplateBinding  TextAlignment}" TextWrapping="NoWrap" Text="{Binding Text,  RelativeSource={RelativeSource TemplatedParent}}" TabIndex="{TemplateBinding  TabIndex}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"  WatermarkTemplate="{TemplateBinding WatermarkTemplate}"  Watermark="{TemplateBinding Watermark}"/>
                                <ToggleButton x:Name="_calendarToggleButton"  Grid.Column="1" Focusable="False" IsChecked="{Binding IsOpen,  RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center"  HorizontalAlignment="Center">
                                    <ToggleButton.IsHitTestVisible>
                                        <Binding Path="IsOpen"  RelativeSource="{RelativeSource TemplatedParent}">
                                            <Binding.Converter>
                                                <xce:InverseBoolConverter/>
                                            </Binding.Converter>
                                        </Binding>
                                    </ToggleButton.IsHitTestVisible>
                                    <ToggleButton.IsEnabled>
                                        <Binding Path="IsReadOnly"  RelativeSource="{RelativeSource TemplatedParent}">
                                            <Binding.Converter>
                                                <xce:InverseBoolConverter/>
                                            </Binding.Converter>
                                        </Binding>
                                    </ToggleButton.IsEnabled>
                                    <ToggleButton.Style>
                                        <Style TargetType="{x:Type ToggleButton}">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="{x:Type  ToggleButton}">
                                                        <Grid Background="#11FFFFFF"  FlowDirection="LeftToRight" HorizontalAlignment="Center" Height="18"  Margin="0,0,5,0" VerticalAlignment="Center" Width="19">
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition  Width="20*"/>
                                                                <ColumnDefinition  Width="20*"/>
                                                                <ColumnDefinition  Width="20*"/>
                                                                <ColumnDefinition  Width="20*"/>
                                                            </Grid.ColumnDefinitions>
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition  Height="23*"/>
                                                                <RowDefinition  Height="19*"/>
                                                                <RowDefinition  Height="19*"/>
                                                                <RowDefinition  Height="19*"/>
                                                            </Grid.RowDefinitions>
                                                            <Border x:Name="Highlight"  BorderBrush="#FF45D6FA" BorderThickness="1" Grid.ColumnSpan="4"  CornerRadius="0,0,1,1" Margin="-1" Opacity="0" Grid.Row="0" Grid.RowSpan="4"/>
                                                            <Border x:Name="Background"  BorderBrush="#FFFFFFFF" BorderThickness="1" Background="#FF1F3B53"  Grid.ColumnSpan="4" CornerRadius=".5" Margin="0,-1,0,0" Opacity="1" Grid.Row="1"  Grid.RowSpan="3"/>
                                                            <Border  x:Name="BackgroundGradient" BorderBrush="#BF000000" BorderThickness="1"  Grid.ColumnSpan="4" CornerRadius=".5" Margin="0,-1,0,0" Opacity="1" Grid.Row="1"  Grid.RowSpan="3">
                                                                <Border.Background>
                                                                    <LinearGradientBrush  EndPoint=".7,1" StartPoint=".7,0">
                                                                        <GradientStop  Color="#FFFFFFFF" Offset="0"/>
                                                                        <GradientStop  Color="#F9FFFFFF" Offset="0.375"/>
                                                                        <GradientStop  Color="#E5FFFFFF" Offset="0.625"/>
                                                                        <GradientStop  Color="#C6FFFFFF" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Border.Background>
                                                            </Border>
                                                            <Rectangle Grid.ColumnSpan="4"  Grid.RowSpan="1" StrokeThickness="1">
                                                                <Rectangle.Fill>
                                                                    <LinearGradientBrush  EndPoint="0.3,-1.1" StartPoint="0.46,1.6">
                                                                        <GradientStop  Color="#FF4084BD"/>
                                                                        <GradientStop  Color="#FFAFCFEA" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Rectangle.Fill>
                                                                <Rectangle.Stroke>
                                                                    <LinearGradientBrush  EndPoint="0.48,-1" StartPoint="0.48,1.25">
                                                                        <GradientStop  Color="#FF494949"/>
                                                                        <GradientStop  Color="#FF9F9F9F" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Rectangle.Stroke>
                                                            </Rectangle>
                                                            <Path Grid.ColumnSpan="4"  Grid.Column="0" Data="M11.426758,8.4305077 L11.749023,8.4305077  L11.749023,16.331387 L10.674805,16.331387 L10.674805,10.299648  L9.0742188,11.298672 L9.0742188,10.294277 C9.4788408,10.090176 9.9094238,9.8090878  10.365967,9.4510155 C10.82251,9.0929432 11.176106,8.7527733 11.426758,8.4305077 z  M14.65086,8.4305077 L18.566387,8.4305077 L18.566387,9.3435936 L15.671368,9.3435936  L15.671368,11.255703 C15.936341,11.058764 16.27293,10.960293 16.681133,10.960293  C17.411602,10.960293 17.969301,11.178717 18.354229,11.615566 C18.739157,12.052416  18.931622,12.673672 18.931622,13.479336 C18.931622,15.452317 18.052553,16.438808  16.294415,16.438808 C15.560365,16.438808 14.951641,16.234707 14.468243,15.826504  L14.881817,14.929531 C15.368796,15.326992 15.837872,15.525723 16.289043,15.525723  C17.298809,15.525723 17.803692,14.895514 17.803692,13.635098 C17.803692,12.460618  17.305971,11.873379 16.310528,11.873379 C15.83071,11.873379 15.399232,12.079271  15.016094,12.491055 L14.65086,12.238613 z" Fill="#FF2F2F2F"  HorizontalAlignment="Center" Margin="4,3,4,3" Grid.Row="1" Grid.RowSpan="3"  RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Center"/>
                                                            <Ellipse Grid.ColumnSpan="4"  Fill="#FFFFFFFF" HorizontalAlignment="Center" Height="3" StrokeThickness="0"  VerticalAlignment="Center" Width="3"/>
                                                            <Border  x:Name="DisabledVisual" BorderBrush="#B2FFFFFF" BorderThickness="1"  Grid.ColumnSpan="4" CornerRadius="0,0,.5,.5" Opacity="0" Grid.Row="0"  Grid.RowSpan="4"/>
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </ToggleButton.Style>
                                </ToggleButton>
                                <bc:ErrorPopup x:Name="errorpopup" Focusable="False"  AllowsTransparency="True" Placement="Bottom" IsOpen="False" VerticalOffset="3"  IsHitTestVisible="False">
                                    <ed:Callout AnchorPoint="0.265,-0.35"  Margin="0,25,0,0"  Fill="#ffe2e5" Stroke="{StaticResource Error.Foreground}">
                                        <ed:Callout.Content>
                                            <TextBlock Margin="5" FontSize="12"  Foreground="{StaticResource Error.Foreground}" Text="{TemplateBinding  bc:ControlAttachProperty.ErrorText}"/>
                                        </ed:Callout.Content>
                                    </ed:Callout>
                                </bc:ErrorPopup>
                            </Grid>
                            <Popup x:Name="PART_Popup" IsOpen="{Binding IsChecked,  ElementName=_calendarToggleButton}" StaysOpen="False" ToolTip="">
                                <Popup.Resources>
                                    <Style x:Key="{x:Type ToolTip}" TargetType="{x:Type  ToolTip}">
                                        <Style.Triggers>
                                            <Trigger Property="Content" Value="">
                                                <Setter Property="Visibility"  Value="Collapsed"/>
                                            </Trigger>
                                        </Style.Triggers>
                                    </Style>
                                </Popup.Resources>
                                <Border BorderBrush="#FFABADB3" BorderThickness="1"  Padding="3">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0,1"  StartPoint="0,0">
                                            <GradientStop Color="#FFF0F0F0" Offset="0"/>
                                            <GradientStop Color="#FFE5E5E5" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <StackPanel>
                                        <Calendar x:Name="PART_Calendar"  BorderThickness="0" DisplayMode="{Binding CalendarDisplayMode,  RelativeSource={RelativeSource TemplatedParent}}" DisplayDate="2018-07-24">
                                            <Calendar.Template>
                                                <ControlTemplate TargetType="{x:Type  Calendar}">
                                                    <Viewbox Width="{Binding  CalendarWidth, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1,  AncestorType={x:Type xce:DateTimePicker}}}">
                                                        <StackPanel x:Name="PART_Root"  HorizontalAlignment="Center">
                                                            <CalendarItem  x:Name="PART_CalendarItem" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" Style="{TemplateBinding CalendarItemStyle}"/>
                                                        </StackPanel>
                                                    </Viewbox>
                                                </ControlTemplate>
                                            </Calendar.Template>
                                        </Calendar>
                                        <xce:TimePicker x:Name="PART_TimeUpDown"  AllowSpin="{TemplateBinding TimePickerAllowSpin}" Background="{DynamicResource  {x:Static SystemColors.WindowBrushKey}}" ClipValueToMinMax="{Binding  ClipValueToMinMax, RelativeSource={RelativeSource TemplatedParent}}"  Foreground="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"  FormatString="{TemplateBinding TimeFormatString}" Format="{TemplateBinding  TimeFormat}" IsUndoEnabled="{Binding IsUndoEnabled, RelativeSource={RelativeSource  TemplatedParent}}" Kind="{Binding Kind, RelativeSource={RelativeSource  TemplatedParent}}" Maximum="{Binding Maximum, RelativeSource={RelativeSource  TemplatedParent}}" Minimum="{Binding Minimum, RelativeSource={RelativeSource  TemplatedParent}}" ShowButtonSpinner="{TemplateBinding  TimePickerShowButtonSpinner}" Step="{TemplateBinding Step}" Text=""  Visibility="{TemplateBinding TimePickerVisibility}" Value="{Binding Value,  RelativeSource={RelativeSource TemplatedParent}}"  WatermarkTemplate="{TemplateBinding TimeWatermarkTemplate}"  Watermark="{TemplateBinding TimeWatermark}"/>
                                    </StackPanel>
                                </Border>
                            </Popup>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="BorderBrush" Value="{StaticResource  TextBox.Static.Border}"/>
                        </Trigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding IsReadOnly,  RelativeSource={RelativeSource Self}}" Value="False"/>
                                <Condition Binding="{Binding AllowTextInput,  RelativeSource={RelativeSource Self}}" Value="False"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="IsReadOnly" TargetName="PART_TextBox"  Value="True"/>
                        </MultiDataTrigger>
                        <DataTrigger Binding="{Binding IsReadOnly,  RelativeSource={RelativeSource Self}}" Value="True">
                            <Setter Property="IsReadOnly" TargetName="PART_TextBox"  Value="True"/>
                        </DataTrigger>
                        <Trigger Property="IsKeyboardFocusWithin" Value="True">
                            <Setter Property="BorderBrush" Value="{StaticResource  TextBox.Static.Border}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground" Value="{DynamicResource  {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter Property="FocusManager.FocusedElement"  TargetName="bor" Value="{Binding ElementName=bor}"/>
                        </Trigger>
                        <Trigger Property="bc:ControlAttachProperty.IsError"  Value="true">
                            <Setter TargetName="errorpopup" Property="IsOpen"  Value="true"/>
                            <Setter TargetName="bor" Property="BorderBrush"  Value="{StaticResource Error.Foreground}"/>
                        </Trigger>
                        <Trigger Property="bc:ControlAttachProperty.ErrorText"  Value="">
                            <Setter TargetName="errorpopup" Property="IsOpen"  Value="false"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--主工作区选项卡样式-->
    <SolidColorBrush x:Key="TabControl.HeaderBackGround" Color="#f5f4f7"/>
    <Style TargetType="{x:Type TabControl}" x:Key="MainTabPanel">
        <Style.Resources>
            <!--选项卡单项样式-->
            <Style TargetType="{x:Type TabItem}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type TabItem}">
                            <Border x:Name="border" Margin="0,0,2,0"  CornerRadius="5,5,0,0" SnapsToDevicePixels="True" ClipToBounds="True">
                                <ContentPresenter x:Name="contentPresenter"  ContentSource="Header" Focusable="False" RecognizesAccessKey="True"
                                                  SnapsToDevicePixels="{TemplateBinding  SnapsToDevicePixels}"/>
                            </Border>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter TargetName="border" Property="Background"  Value="#4dd0e1"/>
                                </Trigger>
                                <Trigger Property="IsSelected" Value="False">
                                    <Setter TargetName="border" Property="Background"  Value="#ffffff"/>
                                </Trigger>
                                <!--<Trigger Property="TabStripPlacement"  Value="Top"/>
                                <Trigger Property="TabStripPlacement" Value="Left">
                                    <Setter Property="LayoutTransform">
                                        <Setter.Value>
                                            <RotateTransform Angle="-90" />
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>
                                <Trigger Property="TabStripPlacement" Value="Right">
                                    <Setter Property="LayoutTransform">
                                        <Setter.Value>
                                            <RotateTransform Angle="90" />
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>-->
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Style.Resources>
        <Setter Property="TabStripPlacement" Value="Top"/>
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabControl}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Name="ROW0" Height="Auto"/>
                            <RowDefinition Name="ROW1" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Name="COL0" />
                            <ColumnDefinition Name="COL1" />
                        </Grid.ColumnDefinitions>
                        <Border Background="{StaticResource  TabControl.HeaderBackGround}" Name="Mask" Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="2"/>
                        <Border Name="TP" Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="2">
                            <Grid>
                                <ScrollViewer HorizontalScrollBarVisibility="Hidden"  VerticalScrollBarVisibility="Hidden" Height="52" Margin="12,0,90,0">
                                    <StackPanel Orientation="Horizontal"  IsItemsHost="True" VerticalAlignment="Bottom">
                                        <StackPanel.OpacityMask>
                                            <VisualBrush Visual="{Binding  ElementName=Mask}"/>
                                        </StackPanel.OpacityMask>
                                    </StackPanel>
                                </ScrollViewer>
                                <Rectangle x:Name="rect" Fill="#e3e3e4"  VerticalAlignment="Bottom" Height="2" Margin="12,0,10,0"/>
                            </Grid>
                        </Border>
                        <Grid Name="TC" Grid.Row="1" Grid.Column="0"  Grid.ColumnSpan="2">
                            <ContentPresenter x:Name="PART_SelectedContentHost"  ContentSource="SelectedContent" SnapsToDevicePixels="{TemplateBinding  SnapsToDevicePixels}"/>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <!--<Trigger Property="TabStripPlacement" Value="Top">
                            <Setter TargetName="ROW0" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>-->
                        <!--<Trigger Property="TabStripPlacement" Value="Bottom">
                            <Setter TargetName="ROW1" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="1" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Left">
                            <Setter TargetName="COL0" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Right">
                            <Setter TargetName="COL1" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>-->
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--列表行数模版-->
    <DataTemplate x:Key="rowIndicatorContentTemplate">
        <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <TextBlock Text="{Binding Path=RowHandle.Value,Converter={StaticResource  rsc}}"
                       TextAlignment="Center" Foreground="LightGray"/>
        </StackPanel>
    </DataTemplate>
    <!--滚动条-->
    <Style x:Key="ScrollViewerStyle" TargetType="{x:Type ScrollViewer}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="CanContentScroll" Value="True"/>
        <Style.Resources>
            <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="NormalBrush" Color="Transparent" />
            <SolidColorBrush x:Key="NormalBorderBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBorderBrush" Color="#D6D4D4" />
            <!--方向箭头颜色-->
            <SolidColorBrush x:Key="GlyphBrush" Color="Black"/>
            <LinearGradientBrush x:Key="PressedBrush"
                                    StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection>
                        <GradientStop Color="#BBB" Offset="0.0"/>
                        <GradientStop Color="#EEE" Offset="0.1"/>
                        <GradientStop Color="#EEE" Offset="0.9"/>
                        <GradientStop Color="#FFF" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>
            <!--方向箭头按钮-->
            <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Name="Border" Margin="1"  Background="{StaticResource NormalBrush}">
                                <Path HorizontalAlignment="Center"  VerticalAlignment="Center" Fill="{StaticResource GlyphBrush}"
                                      Data="{Binding  Path=Content,RelativeSource={RelativeSource TemplatedParent}}"/>
                            </Border>
                            <ControlTemplate.Triggers>
                                <!--选择箭头时的背景色-->
                                <Trigger Property="IsPressed" Value="true">
                                    <Setter TargetName="Border" Property="Background"  Value="#6A6A6A" />
                                </Trigger>
                                <!--鼠标悬浮时 设置透明度-->
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Opacity" TargetName="Border"  Value="0.8"/>
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="false">
                                    <Setter Property="Foreground"  Value="{StaticResource DisabledForegroundBrush}"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!-- 滚动条显示部分样式-->
            <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Background="Transparent" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!--滚动条样式-->
            <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Width" Value="8"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border x:Name="border" Background="#D6D4D4"  BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="0" CornerRadius="5"/>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid>
                    <Grid.RowDefinitions>
                        <!--<RowDefinition MaxHeight="18"/>-->
                        <RowDefinition Height="*"/>
                        <!--<RowDefinition MaxHeight="18"/>-->
                    </Grid.RowDefinitions>
                    <Border Grid.RowSpan="3" Background="Transparent"  BorderThickness="0" BorderBrush="Transparent"/>
                    <!--<RepeatButton Grid.Row="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Height="18" Command="ScrollBar.LineUpCommand"  Content="M 0 4 L 8 4 L 4 0 Z" />-->
                    <Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource ScrollBarThumb}"  Margin="1,0,1,0" Background="{StaticResource HorizontalNormalBrush}"  
                                    BorderBrush="{StaticResource  HorizontalNormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton Style="{StaticResource ScrollBarPageButton}"  Command="ScrollBar.PageDownCommand" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <!--<RepeatButton Grid.Row="3" Style="{StaticResource  ScrollBarLineButton}" Height="18" Command="ScrollBar.PageDownCommand"  Content="M  0 0 L 4 4 L 8 0 Z"/>-->
                </Grid>
            </ControlTemplate>
            <Style x:Key="HScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Height" Value="9"/>
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border  x:Name="border" CornerRadius="0"  Background="#D6D4D4"
                                        BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="0" />
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <!--<ColumnDefinition MaxWidth="18"/>-->
                        <ColumnDefinition Width="*"/>
                        <!--<ColumnDefinition MaxWidth="18"/>-->
                    </Grid.ColumnDefinitions>
                    <Border Grid.ColumnSpan="3" Background="Transparent"  BorderThickness="0" BorderBrush="Transparent"/>
                    <!--<RepeatButton Grid.Column="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.LineLeftCommand"  Content="M 4 0 L 4 8 L 0 4 Z" />-->
                    <Track Name="PART_Track" Grid.Column="1"  IsDirectionReversed="False">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource HScrollBarThumb}"  Margin="0,1,0,1" Background="{StaticResource NormalBrush}"
                                    BorderBrush="{StaticResource NormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton  Style="{StaticResource  ScrollBarPageButton}" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <!--<RepeatButton Grid.Column="2" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.PageRightCommand"  Content="M 0 0 L 4 4 L 0 8 Z"/>-->
                </Grid>
            </ControlTemplate>
            <!--滚动条整体样式-->
            <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Style.Triggers>
                    <Trigger Property="Orientation" Value="Horizontal">
                        <Setter Property="Width" Value="Auto"/>
                        <Setter Property="Height" Value="10" />
                        <Setter Property="Template"  
                    Value="{StaticResource HorizontalScrollBar}" />
                    </Trigger>
                    <Trigger Property="Orientation" Value="Vertical">
                        <Setter Property="Width" Value="10"/>
                        <Setter Property="Height" Value="Auto" />
                        <Setter Property="Template"  
                    Value="{StaticResource VerticalScrollBar}" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Style.Resources>
    </Style>
    
    <!--滚动条-->
    <Style x:Key="TabDictionary.ScrollViewerStyle" TargetType="{x:Type  ScrollViewer}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="CanContentScroll" Value="True"/>
        <Style.Resources>
            <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="NormalBrush" Color="Transparent" />
            <SolidColorBrush x:Key="NormalBorderBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBorderBrush" Color="#D6D4D4" />
            <!--方向箭头颜色-->
            <SolidColorBrush x:Key="GlyphBrush" Color="Black"/>
            <LinearGradientBrush x:Key="PressedBrush"
                                    StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection>
                        <GradientStop Color="#BBB" Offset="0.0"/>
                        <GradientStop Color="#EEE" Offset="0.1"/>
                        <GradientStop Color="#EEE" Offset="0.9"/>
                        <GradientStop Color="#FFF" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>
            <!--方向箭头按钮-->
            <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Name="Border" Margin="1"  Background="{StaticResource NormalBrush}">
                                <Path HorizontalAlignment="Center"  VerticalAlignment="Center" Fill="{StaticResource GlyphBrush}"
                                        Data="{Binding  Path=Content,RelativeSource={RelativeSource TemplatedParent}}" />
                            </Border>
                            <ControlTemplate.Triggers>
                                <!--选择箭头时的背景色-->
                                <Trigger Property="IsPressed" Value="true">
                                    <Setter TargetName="Border" Property="Background"  Value="#6A6A6A" />
                                </Trigger>
                                <!--鼠标悬浮时 设置透明度-->
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Opacity" TargetName="Border"  Value="0.8"></Setter>
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="false">
                                    <Setter Property="Foreground"  
                            Value="{StaticResource DisabledForegroundBrush}"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!-- 滚动条显示部分样式-->
            <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Background="Transparent" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!--滚动条样式-->
            <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Width" Value="8"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border x:Name="border" Background="#D6D4D4"  BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" CornerRadius="5"/>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid>
                    <Grid.RowDefinitions>
                        <!--<RowDefinition MaxHeight="18"/>-->
                        <RowDefinition Height="*"/>
                        <!--<RowDefinition MaxHeight="18"/>-->
                    </Grid.RowDefinitions>
                    <Border Grid.RowSpan="3" Background="#E4EBF3" BorderThickness="0"  BorderBrush="Transparent"/>
                    <!--<RepeatButton Grid.Row="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Height="18" Command="ScrollBar.LineUpCommand"  Content="M 0 4 L 8 4 L 4 0 Z" />-->
                    <Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource ScrollBarThumb}"  Margin="1,0,1,0" Background="{StaticResource HorizontalNormalBrush}"  
                                    BorderBrush="{StaticResource  HorizontalNormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton Style="{StaticResource ScrollBarPageButton}"  Command="ScrollBar.PageDownCommand" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <!--<RepeatButton Grid.Row="3" Style="{StaticResource  ScrollBarLineButton}" Height="18" Command="ScrollBar.PageDownCommand"  Content="M  0 0 L 4 4 L 8 0 Z"/>-->
                </Grid>
            </ControlTemplate>
            <Style x:Key="HScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Height" Value="9"/>
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border  x:Name="border" CornerRadius="0"  Background="#D6D4D4"
                                        BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="0" />
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MaxWidth="18"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition MaxWidth="18"/>
                    </Grid.ColumnDefinitions>
                    <Border Grid.ColumnSpan="3" CornerRadius="2"  Background="Transparent" BorderThickness="0" BorderBrush="#D6D4D4"/>
                    <RepeatButton Grid.Column="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.LineLeftCommand"  Content="M 4 0 L 4 8 L 0 4 Z" />
                    <Track Name="PART_Track" Grid.Column="1"  IsDirectionReversed="False">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource HScrollBarThumb}"  Margin="0,1,0,1" Background="{StaticResource NormalBrush}"
                                    BorderBrush="{StaticResource NormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton  Style="{StaticResource  ScrollBarPageButton}" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <RepeatButton Grid.Column="2" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.PageRightCommand"  Content="M 0 0 L 4 4 L 0 8 Z"/>
                </Grid>
            </ControlTemplate>
            <!--滚动条整体样式-->
            <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Style.Triggers>
                    <Trigger Property="Orientation" Value="Horizontal">
                        <Setter Property="Width" Value="Auto"/>
                        <Setter Property="Height" Value="10" />
                        <Setter Property="Template" Value="{StaticResource  HorizontalScrollBar}" />
                    </Trigger>
                    <Trigger Property="Orientation" Value="Vertical">
                        <Setter Property="Width" Value="10"/>
                        <Setter Property="Height" Value="Auto" />
                        <Setter Property="Template" Value="{StaticResource  VerticalScrollBar}" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Style.Resources>
    </Style>
    
    <!--字典选项卡-->
    <SolidColorBrush x:Key="TabDictionary.HeaderBackGround" Color="White" />
    <Style TargetType="{x:Type TabControl}" x:Key="TabDictionary">
        <Style.Resources>
            <Style TargetType="{x:Type TabItem}">
                <Setter Property="Background" Value="White"/>
                <Setter Property="BorderBrush" Value="{x:Null}"/>
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="ForceCursor" Value="False"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Width" Value="260"/>
                <Setter Property="Height" Value="65"/>
                <Setter Property="Margin" Value="10,5,10,5"/>
                <Setter Property="Cursor" Value="Hand"/>
                <Setter Property="TextBlock.TextAlignment" Value="Left"/>
                <Setter Property="TextBlock.Foreground" Value="{StaticResource  TextBlock.Content.Color}"/>
                <Setter Property="TextBlock.FontFamily" Value="微软雅黑"/>
                <Setter Property="TextBlock.FontSize" Value="16px"/>
                <Setter Property="Template" >
                    <Setter.Value>
                        <ControlTemplate>
                            <Grid Background="White" Width="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}" Height="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}">
                                <TextBlock Margin="10,0,0,0"  HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                               VerticalAlignment="{TemplateBinding  VerticalAlignment}"
                                               TextAlignment="{TemplateBinding  TextBlock.TextAlignment}"
                                               Text="{TemplateBinding  HeaderedContentControl.Header}"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Template" >
                            <Setter.Value>
                                <ControlTemplate>
                                    <Grid Background="#20A0FF" Width="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}" Height="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}">
                                        <TextBlock Margin="10,0,0,0"  HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                                       VerticalAlignment="{TemplateBinding  VerticalAlignment}" TextAlignment="{TemplateBinding TextBlock.TextAlignment}"
                                                       Text="{TemplateBinding  HeaderedContentControl.Header}" FontWeight="Bold"/>
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                        <Setter Property="Foreground" Value="White"/>
                    </Trigger>
                    <!--<Trigger Property="TabItem.IsMouseOver" Value="True">
                    <Setter Property="TabItem.Template" >
                        <Setter.Value>
                            <ControlTemplate>
                                <Canvas Name="canvas" Background="#FF6160E2">
                                    <TextBlock HorizontalAlignment="Center"
                                               VerticalAlignment="Center"
                                               Text="{TemplateBinding  HeaderedContentControl.Header}"
                                               >
                                    </TextBlock>
                                </Canvas>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Trigger>-->
                    <!--<Trigger Property="TabItem.IsFocused" Value="True">
                    <Setter Property="TabItem.Background" Value="Gray"/>
                </Trigger>-->
                </Style.Triggers>
            </Style>
            <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource  TabDictionary.ScrollViewerStyle}"/>
        </Style.Resources>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabControl}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition x:Name="ROW0" />
                            <RowDefinition x:Name="ROW1" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Name="COL0" />
                            <ColumnDefinition x:Name="COL1" />
                        </Grid.ColumnDefinitions>
                        <Border Background="{StaticResource  TabDictionary.HeaderBackGround}" x:Name="Mask" />
                        <Border x:Name="TP">
                            <ScrollViewer VerticalScrollBarVisibility="Visible">
                                <TabPanel IsItemsHost="True">
                                    <TabPanel.OpacityMask>
                                        <VisualBrush Visual="{Binding ElementName=Mask}"  />
                                    </TabPanel.OpacityMask>
                                </TabPanel>
                            </ScrollViewer>
                        </Border>
                        <Grid Grid.Row="0" x:Name="TC">
                            <ContentPresenter x:Name="PART_SelectedContentHost"  ContentSource="SelectedContent" Margin="0" SnapsToDevicePixels="{TemplateBinding  SnapsToDevicePixels}"/>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="TabStripPlacement" Value="Top">
                            <Setter TargetName="ROW0" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Bottom">
                            <Setter TargetName="ROW1" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="1" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Left">
                            <Setter TargetName="COL0" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Right">
                            <Setter TargetName="COL1" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--扩展卡样式-->
    <SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="#c7c7cc"/>
    <SolidColorBrush x:Key="Expander.Pressed.Arrow.Stroke" Color="#c7c7cc"/>
    <SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="#c7c7cc"/>
    <SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="#c7c7cc"/>
    <Style x:Key="ExpanderHeaderFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border>
                        <Rectangle Margin="0" SnapsToDevicePixels="true"  Stroke="Black" StrokeThickness="1" StrokeDashArray="1 2"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--扩展卡切换按钮样式-->
    <Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border Padding="{TemplateBinding Padding}">
                        <Grid Background="#d5e7ff" Height="30"  SnapsToDevicePixels="False">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <ContentPresenter Grid.Column="0"  HorizontalAlignment="Left" Margin="10,0,0,0" RecognizesAccessKey="True"  SnapsToDevicePixels="True" VerticalAlignment="Center"/>
                            <Path Name="arrow" Grid.Column="1" Data="M 0,0 L 1,0.5 L  0,1 Z" Height="17" Width="12" Margin="0,0,15,0" Stretch="Fill"  HorizontalAlignment="Center"
                                  SnapsToDevicePixels="false" Fill="#FF666666"  VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
                            </Path>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="true">
                            <Setter Property="Data" TargetName="arrow" Value="M 0,0 L  0.5,1 L 1,0 Z"/>
                            <Setter Property="Height" TargetName="arrow" Value="12"/>
                            <Setter Property="Width" TargetName="arrow" Value="17"/>
                            <!--<Setter Property="Data" TargetName="arrow" Value="M  0,0 L 0.5,1 L 1,0 Z"/>-->
                        </Trigger>
                        <!--<Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Stroke" TargetName="arrow"  Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
                        </Trigger>-->
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Stroke" TargetName="arrow"  Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Stroke" TargetName="arrow"  Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--扩展卡模版-->
    <ControlTemplate x:Key="ExpanderTemplate" TargetType="{x:Type Expander}">
        <Border BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" CornerRadius="3" SnapsToDevicePixels="true">
            <DockPanel>
                <ToggleButton x:Name="HeaderSite" ContentTemplate="{TemplateBinding  HeaderTemplate}" ContentTemplateSelector="{TemplateBinding  HeaderTemplateSelector}" Content="{TemplateBinding Header}" DockPanel.Dock="Top"  Foreground="{TemplateBinding Foreground}" FontWeight="{TemplateBinding  FontWeight}" FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"  FontStyle="{TemplateBinding FontStyle}" FontStretch="{TemplateBinding  FontStretch}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding  FontFamily}" HorizontalContentAlignment="{TemplateBinding  HorizontalContentAlignment}" IsChecked="{Binding IsExpanded, Mode=TwoWay,  RelativeSource={RelativeSource TemplatedParent}}" Margin="1" MinWidth="0"  MinHeight="0" Padding="{TemplateBinding Padding}" Style="{StaticResource  ExpanderDownHeaderStyle}" VerticalContentAlignment="{TemplateBinding  VerticalContentAlignment}"/>
                <ContentPresenter x:Name="ExpandSite" DockPanel.Dock="Bottom"  Focusable="false" HorizontalAlignment="{TemplateBinding  HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"  Visibility="Collapsed" VerticalAlignment="{TemplateBinding  VerticalContentAlignment}"/>
            </DockPanel>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsExpanded" Value="true">
                <Setter Property="Visibility" TargetName="ExpandSite"  Value="Visible"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <SolidColorBrush x:Key="MenuItem.Highlight.Background" Color="#3D26A0DA"/>
    <SolidColorBrush x:Key="MenuItem.Highlight.Border" Color="#FF26A0DA"/>
    <SolidColorBrush x:Key="Menu.Disabled.Foreground" Color="#FF707070"/>
    <SolidColorBrush x:Key="MenuItem.Highlight.Disabled.Background"  Color="#0A000000"/>
    <SolidColorBrush x:Key="MenuItem.Highlight.Disabled.Border"  Color="#21000000"/>
    <SolidColorBrush x:Key="MenuItem.Selected.Border" Color="#FF26A0DA"/>
    <SolidColorBrush x:Key="MenuItem.Selected.Background" Color="#3D26A0DA"/>
    <Geometry x:Key="Checkmark">F1 M 10.0,1.2 L 4.7,9.1 L 4.5,9.1 L 0,5.2 L  1.3,3.5 L 4.3,6.1L 8.3,0 L 10.0,1.2 Z</Geometry>
    <SolidColorBrush x:Key="Menu.Static.Foreground" Color="#FF212121"/>
    <Geometry x:Key="RightArrow">M 0,0 L 4,3.5 L 0,7 Z</Geometry>
    <SolidColorBrush x:Key="Menu.Static.Border" Color="#FF999999"/>
    <SolidColorBrush x:Key="Menu.Static.Background" Color="White"/>
    <SolidColorBrush x:Key="Menu.Static.Separator" Color="#FFD7D7D7"/>
    <ControlTemplate x:Key="{ComponentResourceKey  ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}"  TargetType="{x:Type MenuItem}">
        <Border x:Name="templateRoot" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" SnapsToDevicePixels="true">
            <Grid VerticalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <ContentPresenter x:Name="Icon" ContentSource="Icon"  HorizontalAlignment="Center" Height="18" Width="18" Margin="5,3,3,3"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"  VerticalAlignment="Center"/>
                <Path x:Name="GlyphPanel" Data="{StaticResource Checkmark}"  Fill="{TemplateBinding Foreground}" FlowDirection="LeftToRight" Margin="3"  Visibility="Collapsed" VerticalAlignment="Center"/>
                <ContentPresenter Grid.Column="1" ContentSource="Header"  Margin="{TemplateBinding Padding}" RecognizesAccessKey="True"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                <Popup x:Name="PART_Popup" AllowsTransparency="true"  Focusable="false" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource  TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static  SystemParameters.MenuPopupAnimationKey}}" Placement="Bottom"  PlacementTarget="{Binding ElementName=templateRoot}">
                    <Border x:Name="SubMenuBorder" Margin="10"  Background="{StaticResource Menu.Static.Background}">
                        <Border.Effect>
                            <DropShadowEffect BlurRadius="20" ShadowDepth="0"  Opacity="0.2" Color="Black" />
                        </Border.Effect>
                        <!--<ScrollViewer x:Name="SubMenuScrollViewer"  Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,  TypeInTargetAssembly={x:Type FrameworkElement}}}">-->
                            <Grid Margin="10">
                                <!--<Canvas HorizontalAlignment="Left" Height="0"  VerticalAlignment="Top" Width="0">
                                    <Rectangle x:Name="OpaqueRect" Fill="{Binding  Background, ElementName=SubMenuBorder}" Height="{Binding ActualHeight,  ElementName=SubMenuBorder}" Width="{Binding ActualWidth,  ElementName=SubMenuBorder}"/>
                                </Canvas>
                                <Rectangle Fill="{StaticResource  Menu.Static.Separator}" HorizontalAlignment="Left" Margin="29,2,0,2"  Width="1"/>-->
                                <ItemsPresenter x:Name="ItemsPresenter"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="0"/>
                            </Grid>
                        <!--</ScrollViewer>-->
                    </Border>
                </Popup>
            </Grid>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsSuspendingPopupAnimation" Value="true">
                <Setter Property="PopupAnimation" TargetName="PART_Popup"  Value="None"/>
            </Trigger>
            <Trigger Property="Icon" Value="{x:Null}">
                <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
            </Trigger>
            <Trigger Property="IsChecked" Value="true">
                <Setter Property="Visibility" TargetName="GlyphPanel"  Value="Visible"/>
                <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
            </Trigger>
            <Trigger Property="IsHighlighted" Value="True">
                <Setter Property="Background" TargetName="templateRoot"  Value="{StaticResource MenuItem.Highlight.Background}"/>
                <Setter Property="BorderBrush" TargetName="templateRoot"  Value="{StaticResource MenuItem.Highlight.Border}"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="TextElement.Foreground" TargetName="templateRoot"  Value="{StaticResource Menu.Disabled.Foreground}"/>
                <Setter Property="Fill" TargetName="GlyphPanel"  Value="{StaticResource Menu.Disabled.Foreground}"/>
            </Trigger>
            <!--<Trigger Property="ScrollViewer.CanContentScroll"  SourceName="SubMenuScrollViewer" Value="false">
                <Setter Property="Canvas.Top" TargetName="OpaqueRect"  Value="{Binding VerticalOffset, ElementName=SubMenuScrollViewer}"/>
                <Setter Property="Canvas.Left" TargetName="OpaqueRect"  Value="{Binding HorizontalOffset, ElementName=SubMenuScrollViewer}"/>
            </Trigger>-->
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style TargetType="{x:Type MenuItem}" x:Key="MenuItemStyle">
        <Setter Property="Template" Value="{DynamicResource {ComponentResourceKey  ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}"/>
    </Style>
    <!--树形视图模版-->
    <HierarchicalDataTemplate x:Key="treeViewHierarchicalDataTemplate"  ItemsSource="{Binding Children}">
        <StackPanel Orientation="Horizontal">
            <Image Width="10" Height="17" Stretch="Uniform" Source="{Binding  HeaderImage}" VerticalAlignment="Center"/>
            <TextBlock Margin="5,0,0,0" FontFamily="微软雅黑" Text="{Binding  HeaderText}" Tag="{Binding Children}" VerticalAlignment="Center"/>
        </StackPanel>
    </HierarchicalDataTemplate>
    <Style x:Key="CompetenceTreeViewStyle" TargetType="{x:Type  kj:CompetenceTreeView}">
        <Setter Property="ItemTemplate" Value="{StaticResource  treeViewHierarchicalDataTemplate}"/>
        <Setter Property="TreeView.ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type TreeViewItem}">
                    <Setter Property="IsExpanded" Value="{Binding IsExpanded,  RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type  kj:CompetenceTreeView}}}" />
                </Style>
            </Setter.Value>
        </Setter>
    </Style>
    <!--树形视图模版-->
    <HierarchicalDataTemplate x:Key="newTypeHierarchicalDataTemplate"  ItemsSource="{Binding Children}">
        <StackPanel Orientation="Horizontal">
            <Image Width="12" Height="19" Stretch="Uniform" Source="{Binding  HeaderImage}" VerticalAlignment="Center"/>
            <TextBlock Margin="5,0,0,0" FontFamily="微软雅黑" Text="{Binding  HeaderText}" Tag="{Binding Children}" VerticalAlignment="Center"/>
        </StackPanel>
    </HierarchicalDataTemplate>
    <Style x:Key="NewTypeTreeViewStyle" TargetType="{x:Type  kj:CompetenceTreeView}">
        <Setter Property="TextBlock.FontSize" Value="14px"/>
        <Setter Property="ItemTemplate" Value="{StaticResource  newTypeHierarchicalDataTemplate}"/>
        <Setter Property="TreeView.ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type TreeViewItem}">
                    <Setter Property="IsExpanded" Value="True" />
                </Style>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type Expander}">
        <Setter Property="Padding" Value="0"/>
        <Setter Property="IsExpanded" Value="True"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template" Value="{StaticResource ExpanderTemplate}"/>
    </Style>
    <Style TargetType="{x:Type kj:UniversalTaskPanel}">
        <Style.Resources>
                <Style x:Key="LoopTextStyle" TargetType="{x:Type TextBlock}">
         <ResourceDictionary x:Class="TYHTGLPT.Theme.Style"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:convert="clr-namespace:TYHTGLPT"
                    xmlns:kj="clr-namespace:TYHTGLPT.控件"
                    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
                     xmlns:bc="clr-namespace:BKControl.BasisControl;assembly=BKControl"
                     xmlns:ac="clr-namespace:BKControl.AdvancedControl;assembly=BKControl"
                    xmlns:xce="http://schemas.xceed.com/wpf/xaml/toolkit"
                    xmlns:bk="clr-namespace:BKControl;assembly=BKControl">
    <convert:RowsConverter x:Key="rsc"/>
    <!--错误文本颜色-->
    <SolidColorBrush x:Key="Error.Foreground" Color="#e04343"/>
    <!--统一颜色-->
    <SolidColorBrush x:Key="Window.Title.Color" Color="#20A0FF"/>
    <SolidColorBrush x:Key="Window.Border.Color" Color="#9b9b9b"/>
    <SolidColorBrush x:Key="Window.Foreground.Color" Color="White"/>
    <SolidColorBrush x:Key="Window.Border.Background" Color="#E4EBF3"/>
    <SolidColorBrush x:Key="DataList.Footer.Color" Color="#dedee4"/>
    
    <SolidColorBrush x:Key="Button.Window.OK.Color" Color="#53BA00"/>
    <SolidColorBrush x:Key="Button.Dialog.OK.Color" Color="#2DCC70"/>
    <SolidColorBrush x:Key="Button.Login.Color" Color="#2DCC70"/>
    <SolidColorBrush x:Key="TextBox.Static.Border" Color="#009AFF"/>
    <SolidColorBrush x:Key="TextBlock.Title.Color" Color="#333333"/>
    <SolidColorBrush x:Key="TextBlock.Content.Color" Color="#666666"/>
    <SolidColorBrush x:Key="TextBlock.ToolTip.Color" Color="#999999"/>
    <SolidColorBrush x:Key="TextBox.Disabled.Border" Color="#D3DCE6"/>
    <SolidColorBrush x:Key="Expander.Static.Foreground" Color="#424D5F"/>
    <LinearGradientBrush x:Key="LoginButtonColor" EndPoint="0.5,1"  StartPoint="0.5,0">
        <GradientStop Color="#9ae44e" Offset="0"/>
        <GradientStop Color="#76cc1e" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SendCodeButtonColor" EndPoint="0.5,1"  StartPoint="0.5,0">
        <GradientStop Color="#f5f6f7" Offset="0"/>
        <GradientStop Color="#e2e5e7" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="SelelctButtonColor" EndPoint="0.5,1"  StartPoint="0.5,0">
        <GradientStop Color="#fffae5" Offset="0"/>
        <GradientStop Color="#ffe891" Offset="1"/>
    </LinearGradientBrush>
    <Style x:Key="DateTimePickerStyle1" TargetType="{x:Type xce:DateTimePicker}">
        <Setter Property="Background" Value="{DynamicResource {x:Static  SystemColors.WindowBrushKey}}"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static  SystemColors.WindowTextBrushKey}}"/>
        <Setter Property="BorderBrush" Value="{StaticResource  TextBox.Disabled.Border}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="HorizontalContentAlignment" Value="Right"/>
        <Setter Property="TextAlignment" Value="Right"/>
        <Setter Property="TimeWatermarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Content="{Binding}" Foreground="{DynamicResource  {x:Static SystemColors.GrayTextBrushKey}}" Focusable="False" Margin="0,0,3,0"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="WatermarkTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl Content="{Binding}" Foreground="{DynamicResource  {x:Static SystemColors.GrayTextBrushKey}}" Focusable="False" Margin="0,0,3,0"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CalendarWidth" Value="178"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type xce:DateTimePicker}">
                    <Border Name="bor" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" SnapsToDevicePixels="True">
                        <Grid>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <xce:WatermarkTextBox x:Name="PART_TextBox"  AcceptsReturn="False" BorderThickness="0" Background="Transparent"  Foreground="{TemplateBinding Foreground}" FontWeight="{TemplateBinding  FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontStretch="{TemplateBinding  FontStretch}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding  FontFamily}" HorizontalContentAlignment="{TemplateBinding  HorizontalContentAlignment}" IsTabStop="True" IsUndoEnabled="True" MinWidth="20"  Padding="{TemplateBinding Padding}" TextAlignment="{TemplateBinding  TextAlignment}" TextWrapping="NoWrap" Text="{Binding Text,  RelativeSource={RelativeSource TemplatedParent}}" TabIndex="{TemplateBinding  TabIndex}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"  WatermarkTemplate="{TemplateBinding WatermarkTemplate}"  Watermark="{TemplateBinding Watermark}"/>
                                <ToggleButton x:Name="_calendarToggleButton"  Grid.Column="1" Focusable="False" IsChecked="{Binding IsOpen,  RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center"  HorizontalAlignment="Center">
                                    <ToggleButton.IsHitTestVisible>
                                        <Binding Path="IsOpen"  RelativeSource="{RelativeSource TemplatedParent}">
                                            <Binding.Converter>
                                                <xce:InverseBoolConverter/>
                                            </Binding.Converter>
                                        </Binding>
                                    </ToggleButton.IsHitTestVisible>
                                    <ToggleButton.IsEnabled>
                                        <Binding Path="IsReadOnly"  RelativeSource="{RelativeSource TemplatedParent}">
                                            <Binding.Converter>
                                                <xce:InverseBoolConverter/>
                                            </Binding.Converter>
                                        </Binding>
                                    </ToggleButton.IsEnabled>
                                    <ToggleButton.Style>
                                        <Style TargetType="{x:Type ToggleButton}">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="{x:Type  ToggleButton}">
                                                        <Grid Background="#11FFFFFF"  FlowDirection="LeftToRight" HorizontalAlignment="Center" Height="18"  Margin="0,0,5,0" VerticalAlignment="Center" Width="19">
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition  Width="20*"/>
                                                                <ColumnDefinition  Width="20*"/>
                                                                <ColumnDefinition  Width="20*"/>
                                                                <ColumnDefinition  Width="20*"/>
                                                            </Grid.ColumnDefinitions>
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition  Height="23*"/>
                                                                <RowDefinition  Height="19*"/>
                                                                <RowDefinition  Height="19*"/>
                                                                <RowDefinition  Height="19*"/>
                                                            </Grid.RowDefinitions>
                                                            <Border x:Name="Highlight"  BorderBrush="#FF45D6FA" BorderThickness="1" Grid.ColumnSpan="4"  CornerRadius="0,0,1,1" Margin="-1" Opacity="0" Grid.Row="0" Grid.RowSpan="4"/>
                                                            <Border x:Name="Background"  BorderBrush="#FFFFFFFF" BorderThickness="1" Background="#FF1F3B53"  Grid.ColumnSpan="4" CornerRadius=".5" Margin="0,-1,0,0" Opacity="1" Grid.Row="1"  Grid.RowSpan="3"/>
                                                            <Border  x:Name="BackgroundGradient" BorderBrush="#BF000000" BorderThickness="1"  Grid.ColumnSpan="4" CornerRadius=".5" Margin="0,-1,0,0" Opacity="1" Grid.Row="1"  Grid.RowSpan="3">
                                                                <Border.Background>
                                                                    <LinearGradientBrush  EndPoint=".7,1" StartPoint=".7,0">
                                                                        <GradientStop  Color="#FFFFFFFF" Offset="0"/>
                                                                        <GradientStop  Color="#F9FFFFFF" Offset="0.375"/>
                                                                        <GradientStop  Color="#E5FFFFFF" Offset="0.625"/>
                                                                        <GradientStop  Color="#C6FFFFFF" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Border.Background>
                                                            </Border>
                                                            <Rectangle Grid.ColumnSpan="4"  Grid.RowSpan="1" StrokeThickness="1">
                                                                <Rectangle.Fill>
                                                                    <LinearGradientBrush  EndPoint="0.3,-1.1" StartPoint="0.46,1.6">
                                                                        <GradientStop  Color="#FF4084BD"/>
                                                                        <GradientStop  Color="#FFAFCFEA" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Rectangle.Fill>
                                                                <Rectangle.Stroke>
                                                                    <LinearGradientBrush  EndPoint="0.48,-1" StartPoint="0.48,1.25">
                                                                        <GradientStop  Color="#FF494949"/>
                                                                        <GradientStop  Color="#FF9F9F9F" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Rectangle.Stroke>
                                                            </Rectangle>
                                                            <Path Grid.ColumnSpan="4"  Grid.Column="0" Data="M11.426758,8.4305077 L11.749023,8.4305077  L11.749023,16.331387 L10.674805,16.331387 L10.674805,10.299648  L9.0742188,11.298672 L9.0742188,10.294277 C9.4788408,10.090176 9.9094238,9.8090878  10.365967,9.4510155 C10.82251,9.0929432 11.176106,8.7527733 11.426758,8.4305077 z  M14.65086,8.4305077 L18.566387,8.4305077 L18.566387,9.3435936 L15.671368,9.3435936  L15.671368,11.255703 C15.936341,11.058764 16.27293,10.960293 16.681133,10.960293  C17.411602,10.960293 17.969301,11.178717 18.354229,11.615566 C18.739157,12.052416  18.931622,12.673672 18.931622,13.479336 C18.931622,15.452317 18.052553,16.438808  16.294415,16.438808 C15.560365,16.438808 14.951641,16.234707 14.468243,15.826504  L14.881817,14.929531 C15.368796,15.326992 15.837872,15.525723 16.289043,15.525723  C17.298809,15.525723 17.803692,14.895514 17.803692,13.635098 C17.803692,12.460618  17.305971,11.873379 16.310528,11.873379 C15.83071,11.873379 15.399232,12.079271  15.016094,12.491055 L14.65086,12.238613 z" Fill="#FF2F2F2F"  HorizontalAlignment="Center" Margin="4,3,4,3" Grid.Row="1" Grid.RowSpan="3"  RenderTransformOrigin="0.5,0.5" Stretch="Fill" VerticalAlignment="Center"/>
                                                            <Ellipse Grid.ColumnSpan="4"  Fill="#FFFFFFFF" HorizontalAlignment="Center" Height="3" StrokeThickness="0"  VerticalAlignment="Center" Width="3"/>
                                                            <Border  x:Name="DisabledVisual" BorderBrush="#B2FFFFFF" BorderThickness="1"  Grid.ColumnSpan="4" CornerRadius="0,0,.5,.5" Opacity="0" Grid.Row="0"  Grid.RowSpan="4"/>
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </ToggleButton.Style>
                                </ToggleButton>
                                <bc:ErrorPopup x:Name="errorpopup" Focusable="False"  AllowsTransparency="True" Placement="Bottom" IsOpen="False" VerticalOffset="3"  IsHitTestVisible="False">
                                    <ed:Callout AnchorPoint="0.265,-0.35"  Margin="0,25,0,0"  Fill="#ffe2e5" Stroke="{StaticResource Error.Foreground}">
                                        <ed:Callout.Content>
                                            <TextBlock Margin="5" FontSize="12"  Foreground="{StaticResource Error.Foreground}" Text="{TemplateBinding  bc:ControlAttachProperty.ErrorText}"/>
                                        </ed:Callout.Content>
                                    </ed:Callout>
                                </bc:ErrorPopup>
                            </Grid>
                            <Popup x:Name="PART_Popup" IsOpen="{Binding IsChecked,  ElementName=_calendarToggleButton}" StaysOpen="False" ToolTip="">
                                <Popup.Resources>
                                    <Style x:Key="{x:Type ToolTip}" TargetType="{x:Type  ToolTip}">
                                        <Style.Triggers>
                                            <Trigger Property="Content" Value="">
                                                <Setter Property="Visibility"  Value="Collapsed"/>
                                            </Trigger>
                                        </Style.Triggers>
                                    </Style>
                                </Popup.Resources>
                                <Border BorderBrush="#FFABADB3" BorderThickness="1"  Padding="3">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0,1"  StartPoint="0,0">
                                            <GradientStop Color="#FFF0F0F0" Offset="0"/>
                                            <GradientStop Color="#FFE5E5E5" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <StackPanel>
                                        <Calendar x:Name="PART_Calendar"  BorderThickness="0" DisplayMode="{Binding CalendarDisplayMode,  RelativeSource={RelativeSource TemplatedParent}}" DisplayDate="2018-07-24">
                                            <Calendar.Template>
                                                <ControlTemplate TargetType="{x:Type  Calendar}">
                                                    <Viewbox Width="{Binding  CalendarWidth, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1,  AncestorType={x:Type xce:DateTimePicker}}}">
                                                        <StackPanel x:Name="PART_Root"  HorizontalAlignment="Center">
                                                            <CalendarItem  x:Name="PART_CalendarItem" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" Style="{TemplateBinding CalendarItemStyle}"/>
                                                        </StackPanel>
                                                    </Viewbox>
                                                </ControlTemplate>
                                            </Calendar.Template>
                                        </Calendar>
                                        <xce:TimePicker x:Name="PART_TimeUpDown"  AllowSpin="{TemplateBinding TimePickerAllowSpin}" Background="{DynamicResource  {x:Static SystemColors.WindowBrushKey}}" ClipValueToMinMax="{Binding  ClipValueToMinMax, RelativeSource={RelativeSource TemplatedParent}}"  Foreground="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"  FormatString="{TemplateBinding TimeFormatString}" Format="{TemplateBinding  TimeFormat}" IsUndoEnabled="{Binding IsUndoEnabled, RelativeSource={RelativeSource  TemplatedParent}}" Kind="{Binding Kind, RelativeSource={RelativeSource  TemplatedParent}}" Maximum="{Binding Maximum, RelativeSource={RelativeSource  TemplatedParent}}" Minimum="{Binding Minimum, RelativeSource={RelativeSource  TemplatedParent}}" ShowButtonSpinner="{TemplateBinding  TimePickerShowButtonSpinner}" Step="{TemplateBinding Step}" Text=""  Visibility="{TemplateBinding TimePickerVisibility}" Value="{Binding Value,  RelativeSource={RelativeSource TemplatedParent}}"  WatermarkTemplate="{TemplateBinding TimeWatermarkTemplate}"  Watermark="{TemplateBinding TimeWatermark}"/>
                                    </StackPanel>
                                </Border>
                            </Popup>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="BorderBrush" Value="{StaticResource  TextBox.Static.Border}"/>
                        </Trigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding IsReadOnly,  RelativeSource={RelativeSource Self}}" Value="False"/>
                                <Condition Binding="{Binding AllowTextInput,  RelativeSource={RelativeSource Self}}" Value="False"/>
                            </MultiDataTrigger.Conditions>
                            <Setter Property="IsReadOnly" TargetName="PART_TextBox"  Value="True"/>
                        </MultiDataTrigger>
                        <DataTrigger Binding="{Binding IsReadOnly,  RelativeSource={RelativeSource Self}}" Value="True">
                            <Setter Property="IsReadOnly" TargetName="PART_TextBox"  Value="True"/>
                        </DataTrigger>
                        <Trigger Property="IsKeyboardFocusWithin" Value="True">
                            <Setter Property="BorderBrush" Value="{StaticResource  TextBox.Static.Border}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground" Value="{DynamicResource  {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter Property="FocusManager.FocusedElement"  TargetName="bor" Value="{Binding ElementName=bor}"/>
                        </Trigger>
                        <Trigger Property="bc:ControlAttachProperty.IsError"  Value="true">
                            <Setter TargetName="errorpopup" Property="IsOpen"  Value="true"/>
                            <Setter TargetName="bor" Property="BorderBrush"  Value="{StaticResource Error.Foreground}"/>
                        </Trigger>
                        <Trigger Property="bc:ControlAttachProperty.ErrorText"  Value="">
                            <Setter TargetName="errorpopup" Property="IsOpen"  Value="false"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--主工作区选项卡样式-->
    <SolidColorBrush x:Key="TabControl.HeaderBackGround" Color="#f5f4f7"/>
    <Style TargetType="{x:Type TabControl}" x:Key="MainTabPanel">
        <Style.Resources>
            <!--选项卡单项样式-->
            <Style TargetType="{x:Type TabItem}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type TabItem}">
                            <Border x:Name="border" Margin="0,0,2,0"  CornerRadius="5,5,0,0" SnapsToDevicePixels="True" ClipToBounds="True">
                                <ContentPresenter x:Name="contentPresenter"  ContentSource="Header" Focusable="False" RecognizesAccessKey="True"
                                                  SnapsToDevicePixels="{TemplateBinding  SnapsToDevicePixels}"/>
                            </Border>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter TargetName="border" Property="Background"  Value="#4dd0e1"/>
                                </Trigger>
                                <Trigger Property="IsSelected" Value="False">
                                    <Setter TargetName="border" Property="Background"  Value="#ffffff"/>
                                </Trigger>
                                <!--<Trigger Property="TabStripPlacement"  Value="Top"/>
                                <Trigger Property="TabStripPlacement" Value="Left">
                                    <Setter Property="LayoutTransform">
                                        <Setter.Value>
                                            <RotateTransform Angle="-90" />
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>
                                <Trigger Property="TabStripPlacement" Value="Right">
                                    <Setter Property="LayoutTransform">
                                        <Setter.Value>
                                            <RotateTransform Angle="90" />
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>-->
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Style.Resources>
        <Setter Property="TabStripPlacement" Value="Top"/>
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabControl}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Name="ROW0" Height="Auto"/>
                            <RowDefinition Name="ROW1" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Name="COL0" />
                            <ColumnDefinition Name="COL1" />
                        </Grid.ColumnDefinitions>
                        <Border Background="{StaticResource  TabControl.HeaderBackGround}" Name="Mask" Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="2"/>
                        <Border Name="TP" Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="2">
                            <Grid>
                                <ScrollViewer HorizontalScrollBarVisibility="Hidden"  VerticalScrollBarVisibility="Hidden" Height="52" Margin="12,0,90,0">
                                    <StackPanel Orientation="Horizontal"  IsItemsHost="True" VerticalAlignment="Bottom">
                                        <StackPanel.OpacityMask>
                                            <VisualBrush Visual="{Binding  ElementName=Mask}"/>
                                        </StackPanel.OpacityMask>
                                    </StackPanel>
                                </ScrollViewer>
                                <Rectangle x:Name="rect" Fill="#e3e3e4"  VerticalAlignment="Bottom" Height="2" Margin="12,0,10,0"/>
                            </Grid>
                        </Border>
                        <Grid Name="TC" Grid.Row="1" Grid.Column="0"  Grid.ColumnSpan="2">
                            <ContentPresenter x:Name="PART_SelectedContentHost"  ContentSource="SelectedContent" SnapsToDevicePixels="{TemplateBinding  SnapsToDevicePixels}"/>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <!--<Trigger Property="TabStripPlacement" Value="Top">
                            <Setter TargetName="ROW0" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>-->
                        <!--<Trigger Property="TabStripPlacement" Value="Bottom">
                            <Setter TargetName="ROW1" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="1" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Left">
                            <Setter TargetName="COL0" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Right">
                            <Setter TargetName="COL1" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>-->
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--列表行数模版-->
    <DataTemplate x:Key="rowIndicatorContentTemplate">
        <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <TextBlock Text="{Binding Path=RowHandle.Value,Converter={StaticResource  rsc}}"
                       TextAlignment="Center" Foreground="LightGray"/>
        </StackPanel>
    </DataTemplate>
    <!--滚动条-->
    <Style x:Key="ScrollViewerStyle" TargetType="{x:Type ScrollViewer}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="CanContentScroll" Value="True"/>
        <Style.Resources>
            <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="NormalBrush" Color="Transparent" />
            <SolidColorBrush x:Key="NormalBorderBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBorderBrush" Color="#D6D4D4" />
            <!--方向箭头颜色-->
            <SolidColorBrush x:Key="GlyphBrush" Color="Black"/>
            <LinearGradientBrush x:Key="PressedBrush"
                                    StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection>
                        <GradientStop Color="#BBB" Offset="0.0"/>
                        <GradientStop Color="#EEE" Offset="0.1"/>
                        <GradientStop Color="#EEE" Offset="0.9"/>
                        <GradientStop Color="#FFF" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>
            <!--方向箭头按钮-->
            <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Name="Border" Margin="1"  Background="{StaticResource NormalBrush}">
                                <Path HorizontalAlignment="Center"  VerticalAlignment="Center" Fill="{StaticResource GlyphBrush}"
                                      Data="{Binding  Path=Content,RelativeSource={RelativeSource TemplatedParent}}"/>
                            </Border>
                            <ControlTemplate.Triggers>
                                <!--选择箭头时的背景色-->
                                <Trigger Property="IsPressed" Value="true">
                                    <Setter TargetName="Border" Property="Background"  Value="#6A6A6A" />
                                </Trigger>
                                <!--鼠标悬浮时 设置透明度-->
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Opacity" TargetName="Border"  Value="0.8"/>
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="false">
                                    <Setter Property="Foreground"  Value="{StaticResource DisabledForegroundBrush}"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!-- 滚动条显示部分样式-->
            <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Background="Transparent" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!--滚动条样式-->
            <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Width" Value="8"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border x:Name="border" Background="#D6D4D4"  BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="0" CornerRadius="5"/>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid>
                    <Grid.RowDefinitions>
                        <!--<RowDefinition MaxHeight="18"/>-->
                        <RowDefinition Height="*"/>
                        <!--<RowDefinition MaxHeight="18"/>-->
                    </Grid.RowDefinitions>
                    <Border Grid.RowSpan="3" Background="Transparent"  BorderThickness="0" BorderBrush="Transparent"/>
                    <!--<RepeatButton Grid.Row="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Height="18" Command="ScrollBar.LineUpCommand"  Content="M 0 4 L 8 4 L 4 0 Z" />-->
                    <Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource ScrollBarThumb}"  Margin="1,0,1,0" Background="{StaticResource HorizontalNormalBrush}"  
                                    BorderBrush="{StaticResource  HorizontalNormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton Style="{StaticResource ScrollBarPageButton}"  Command="ScrollBar.PageDownCommand" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <!--<RepeatButton Grid.Row="3" Style="{StaticResource  ScrollBarLineButton}" Height="18" Command="ScrollBar.PageDownCommand"  Content="M  0 0 L 4 4 L 8 0 Z"/>-->
                </Grid>
            </ControlTemplate>
            <Style x:Key="HScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Height" Value="9"/>
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border  x:Name="border" CornerRadius="0"  Background="#D6D4D4"
                                        BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="0" />
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <!--<ColumnDefinition MaxWidth="18"/>-->
                        <ColumnDefinition Width="*"/>
                        <!--<ColumnDefinition MaxWidth="18"/>-->
                    </Grid.ColumnDefinitions>
                    <Border Grid.ColumnSpan="3" Background="Transparent"  BorderThickness="0" BorderBrush="Transparent"/>
                    <!--<RepeatButton Grid.Column="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.LineLeftCommand"  Content="M 4 0 L 4 8 L 0 4 Z" />-->
                    <Track Name="PART_Track" Grid.Column="1"  IsDirectionReversed="False">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource HScrollBarThumb}"  Margin="0,1,0,1" Background="{StaticResource NormalBrush}"
                                    BorderBrush="{StaticResource NormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton  Style="{StaticResource  ScrollBarPageButton}" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <!--<RepeatButton Grid.Column="2" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.PageRightCommand"  Content="M 0 0 L 4 4 L 0 8 Z"/>-->
                </Grid>
            </ControlTemplate>
            <!--滚动条整体样式-->
            <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Style.Triggers>
                    <Trigger Property="Orientation" Value="Horizontal">
                        <Setter Property="Width" Value="Auto"/>
                        <Setter Property="Height" Value="10" />
                        <Setter Property="Template"  
                    Value="{StaticResource HorizontalScrollBar}" />
                    </Trigger>
                    <Trigger Property="Orientation" Value="Vertical">
                        <Setter Property="Width" Value="10"/>
                        <Setter Property="Height" Value="Auto" />
                        <Setter Property="Template"  
                    Value="{StaticResource VerticalScrollBar}" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Style.Resources>
    </Style>
    
    <!--滚动条-->
    <Style x:Key="TabDictionary.ScrollViewerStyle" TargetType="{x:Type  ScrollViewer}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="CanContentScroll" Value="True"/>
        <Style.Resources>
            <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="NormalBrush" Color="Transparent" />
            <SolidColorBrush x:Key="NormalBorderBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBrush" Color="#D6D4D4" />
            <SolidColorBrush x:Key="HorizontalNormalBorderBrush" Color="#D6D4D4" />
            <!--方向箭头颜色-->
            <SolidColorBrush x:Key="GlyphBrush" Color="Black"/>
            <LinearGradientBrush x:Key="PressedBrush"
                                    StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection>
                        <GradientStop Color="#BBB" Offset="0.0"/>
                        <GradientStop Color="#EEE" Offset="0.1"/>
                        <GradientStop Color="#EEE" Offset="0.9"/>
                        <GradientStop Color="#FFF" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>
            <!--方向箭头按钮-->
            <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Name="Border" Margin="1"  Background="{StaticResource NormalBrush}">
                                <Path HorizontalAlignment="Center"  VerticalAlignment="Center" Fill="{StaticResource GlyphBrush}"
                                        Data="{Binding  Path=Content,RelativeSource={RelativeSource TemplatedParent}}" />
                            </Border>
                            <ControlTemplate.Triggers>
                                <!--选择箭头时的背景色-->
                                <Trigger Property="IsPressed" Value="true">
                                    <Setter TargetName="Border" Property="Background"  Value="#6A6A6A" />
                                </Trigger>
                                <!--鼠标悬浮时 设置透明度-->
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Opacity" TargetName="Border"  Value="0.8"></Setter>
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="false">
                                    <Setter Property="Foreground"  
                            Value="{StaticResource DisabledForegroundBrush}"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!-- 滚动条显示部分样式-->
            <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type RepeatButton}">
                            <Border Background="Transparent" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <!--滚动条样式-->
            <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Width" Value="8"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border x:Name="border" Background="#D6D4D4"  BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" CornerRadius="5"/>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid>
                    <Grid.RowDefinitions>
                        <!--<RowDefinition MaxHeight="18"/>-->
                        <RowDefinition Height="*"/>
                        <!--<RowDefinition MaxHeight="18"/>-->
                    </Grid.RowDefinitions>
                    <Border Grid.RowSpan="3" Background="#E4EBF3" BorderThickness="0"  BorderBrush="Transparent"/>
                    <!--<RepeatButton Grid.Row="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Height="18" Command="ScrollBar.LineUpCommand"  Content="M 0 4 L 8 4 L 4 0 Z" />-->
                    <Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource ScrollBarThumb}"  Margin="1,0,1,0" Background="{StaticResource HorizontalNormalBrush}"  
                                    BorderBrush="{StaticResource  HorizontalNormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton Style="{StaticResource ScrollBarPageButton}"  Command="ScrollBar.PageDownCommand" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <!--<RepeatButton Grid.Row="3" Style="{StaticResource  ScrollBarLineButton}" Height="18" Command="ScrollBar.PageDownCommand"  Content="M  0 0 L 4 4 L 8 0 Z"/>-->
                </Grid>
            </ControlTemplate>
            <Style x:Key="HScrollBarThumb" TargetType="{x:Type Thumb}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Setter Property="IsTabStop" Value="false"/>
                <Setter Property="Height" Value="9"/>
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Thumb}">
                            <Border  x:Name="border" CornerRadius="0"  Background="#D6D4D4"
                                        BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="0" />
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Background" TargetName="border"  Value="#6A6A6A"></Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type  ScrollBar}">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MaxWidth="18"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition MaxWidth="18"/>
                    </Grid.ColumnDefinitions>
                    <Border Grid.ColumnSpan="3" CornerRadius="2"  Background="Transparent" BorderThickness="0" BorderBrush="#D6D4D4"/>
                    <RepeatButton Grid.Column="0" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.LineLeftCommand"  Content="M 4 0 L 4 8 L 0 4 Z" />
                    <Track Name="PART_Track" Grid.Column="1"  IsDirectionReversed="False">
                        <Track.DecreaseRepeatButton>
                            <RepeatButton Style="{StaticResource  ScrollBarPageButton}"/>
                        </Track.DecreaseRepeatButton>
                        <Track.Thumb>
                            <Thumb Style="{StaticResource HScrollBarThumb}"  Margin="0,1,0,1" Background="{StaticResource NormalBrush}"
                                    BorderBrush="{StaticResource NormalBorderBrush}" />
                        </Track.Thumb>
                        <Track.IncreaseRepeatButton>
                            <RepeatButton  Style="{StaticResource  ScrollBarPageButton}" />
                        </Track.IncreaseRepeatButton>
                    </Track>
                    <RepeatButton Grid.Column="2" Style="{StaticResource  ScrollBarLineButton}"
                                    Width="18" Command="ScrollBar.PageRightCommand"  Content="M 0 0 L 4 4 L 0 8 Z"/>
                </Grid>
            </ControlTemplate>
            <!--滚动条整体样式-->
            <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
                <Setter Property="SnapsToDevicePixels" Value="True"/>
                <Setter Property="OverridesDefaultStyle" Value="true"/>
                <Style.Triggers>
                    <Trigger Property="Orientation" Value="Horizontal">
                        <Setter Property="Width" Value="Auto"/>
                        <Setter Property="Height" Value="10" />
                        <Setter Property="Template" Value="{StaticResource  HorizontalScrollBar}" />
                    </Trigger>
                    <Trigger Property="Orientation" Value="Vertical">
                        <Setter Property="Width" Value="10"/>
                        <Setter Property="Height" Value="Auto" />
                        <Setter Property="Template" Value="{StaticResource  VerticalScrollBar}" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Style.Resources>
    </Style>
    
    <!--字典选项卡-->
    <SolidColorBrush x:Key="TabDictionary.HeaderBackGround" Color="White" />
    <Style TargetType="{x:Type TabControl}" x:Key="TabDictionary">
        <Style.Resources>
            <Style TargetType="{x:Type TabItem}">
                <Setter Property="Background" Value="White"/>
                <Setter Property="BorderBrush" Value="{x:Null}"/>
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="ForceCursor" Value="False"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Width" Value="260"/>
                <Setter Property="Height" Value="65"/>
                <Setter Property="Margin" Value="10,5,10,5"/>
                <Setter Property="Cursor" Value="Hand"/>
                <Setter Property="TextBlock.TextAlignment" Value="Left"/>
                <Setter Property="TextBlock.Foreground" Value="{StaticResource  TextBlock.Content.Color}"/>
                <Setter Property="TextBlock.FontFamily" Value="微软雅黑"/>
                <Setter Property="TextBlock.FontSize" Value="16px"/>
                <Setter Property="Template" >
                    <Setter.Value>
                        <ControlTemplate>
                            <Grid Background="White" Width="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}" Height="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}">
                                <TextBlock Margin="10,0,0,0"  HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                               VerticalAlignment="{TemplateBinding  VerticalAlignment}"
                                               TextAlignment="{TemplateBinding  TextBlock.TextAlignment}"
                                               Text="{TemplateBinding  HeaderedContentControl.Header}"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Template" >
                            <Setter.Value>
                                <ControlTemplate>
                                    <Grid Background="#20A0FF" Width="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}" Height="{Binding  RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}">
                                        <TextBlock Margin="10,0,0,0"  HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                                       VerticalAlignment="{TemplateBinding  VerticalAlignment}" TextAlignment="{TemplateBinding TextBlock.TextAlignment}"
                                                       Text="{TemplateBinding  HeaderedContentControl.Header}" FontWeight="Bold"/>
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                        <Setter Property="Foreground" Value="White"/>
                    </Trigger>
                    <!--<Trigger Property="TabItem.IsMouseOver" Value="True">
                    <Setter Property="TabItem.Template" >
                        <Setter.Value>
                            <ControlTemplate>
                                <Canvas Name="canvas" Background="#FF6160E2">
                                    <TextBlock HorizontalAlignment="Center"
                                               VerticalAlignment="Center"
                                               Text="{TemplateBinding  HeaderedContentControl.Header}"
                                               >
                                    </TextBlock>
                                </Canvas>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Trigger>-->
                    <!--<Trigger Property="TabItem.IsFocused" Value="True">
                    <Setter Property="TabItem.Background" Value="Gray"/>
                </Trigger>-->
                </Style.Triggers>
            </Style>
            <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource  TabDictionary.ScrollViewerStyle}"/>
        </Style.Resources>
        <Setter Property="BorderBrush" Value="{x:Null}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabControl}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition x:Name="ROW0" />
                            <RowDefinition x:Name="ROW1" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Name="COL0" />
                            <ColumnDefinition x:Name="COL1" />
                        </Grid.ColumnDefinitions>
                        <Border Background="{StaticResource  TabDictionary.HeaderBackGround}" x:Name="Mask" />
                        <Border x:Name="TP">
                            <ScrollViewer VerticalScrollBarVisibility="Visible">
                                <TabPanel IsItemsHost="True">
                                    <TabPanel.OpacityMask>
                                        <VisualBrush Visual="{Binding ElementName=Mask}"  />
                                    </TabPanel.OpacityMask>
                                </TabPanel>
                            </ScrollViewer>
                        </Border>
                        <Grid Grid.Row="0" x:Name="TC">
                            <ContentPresenter x:Name="PART_SelectedContentHost"  ContentSource="SelectedContent" Margin="0" SnapsToDevicePixels="{TemplateBinding  SnapsToDevicePixels}"/>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="TabStripPlacement" Value="Top">
                            <Setter TargetName="ROW0" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Bottom">
                            <Setter TargetName="ROW1" Property="Height" Value="auto"  />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="1" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="1" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.ColumnSpan"  Value="2" />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.ColumnSpan"  Value="2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Left">
                            <Setter TargetName="COL0" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>
                        <Trigger Property="TabStripPlacement" Value="Right">
                            <Setter TargetName="COL1" Property="Width" Value="auto" />
                            <Setter TargetName="Mask" Property="Grid.Row" Value="0" />
                            <Setter TargetName="Mask" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="Mask" Property="Grid.RowSpan"  Value="2" />
                            <Setter TargetName="TP" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TP" Property="Grid.Column" Value="1"  />
                            <Setter TargetName="TP" Property="Grid.RowSpan" Value="2"  />
                            <Setter TargetName="TC" Property="Grid.Column" Value="0"  />
                            <Setter TargetName="TC" Property="Grid.Row" Value="0" />
                            <Setter TargetName="TC" Property="Grid.RowSpan" Value="2"  />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--扩展卡样式-->
    <SolidColorBrush x:Key="Expander.MouseOver.Arrow.Stroke" Color="#c7c7cc"/>
    <SolidColorBrush x:Key="Expander.Pressed.Arrow.Stroke" Color="#c7c7cc"/>
    <SolidColorBrush x:Key="Expander.Disabled.Arrow.Stroke" Color="#c7c7cc"/>
    <SolidColorBrush x:Key="Expander.Static.Arrow.Stroke" Color="#c7c7cc"/>
    <Style x:Key="ExpanderHeaderFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Border>
                        <Rectangle Margin="0" SnapsToDevicePixels="true"  Stroke="Black" StrokeThickness="1" StrokeDashArray="1 2"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--扩展卡切换按钮样式-->
    <Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border Padding="{TemplateBinding Padding}">
                        <Grid Background="#d5e7ff" Height="30"  SnapsToDevicePixels="False">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <ContentPresenter Grid.Column="0"  HorizontalAlignment="Left" Margin="10,0,0,0" RecognizesAccessKey="True"  SnapsToDevicePixels="True" VerticalAlignment="Center"/>
                            <Path Name="arrow" Grid.Column="1" Data="M 0,0 L 1,0.5 L  0,1 Z" Height="17" Width="12" Margin="0,0,15,0" Stretch="Fill"  HorizontalAlignment="Center"
                                  SnapsToDevicePixels="false" Fill="#FF666666"  VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
                            </Path>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="true">
                            <Setter Property="Data" TargetName="arrow" Value="M 0,0 L  0.5,1 L 1,0 Z"/>
                            <Setter Property="Height" TargetName="arrow" Value="12"/>
                            <Setter Property="Width" TargetName="arrow" Value="17"/>
                            <!--<Setter Property="Data" TargetName="arrow" Value="M  0,0 L 0.5,1 L 1,0 Z"/>-->
                        </Trigger>
                        <!--<Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Stroke" TargetName="arrow"  Value="{StaticResource Expander.MouseOver.Arrow.Stroke}"/>
                        </Trigger>-->
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Stroke" TargetName="arrow"  Value="{StaticResource Expander.Pressed.Arrow.Stroke}"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Stroke" TargetName="arrow"  Value="{StaticResource Expander.Disabled.Arrow.Stroke}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--扩展卡模版-->
    <ControlTemplate x:Key="ExpanderTemplate" TargetType="{x:Type Expander}">
        <Border BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" CornerRadius="3" SnapsToDevicePixels="true">
            <DockPanel>
                <ToggleButton x:Name="HeaderSite" ContentTemplate="{TemplateBinding  HeaderTemplate}" ContentTemplateSelector="{TemplateBinding  HeaderTemplateSelector}" Content="{TemplateBinding Header}" DockPanel.Dock="Top"  Foreground="{TemplateBinding Foreground}" FontWeight="{TemplateBinding  FontWeight}" FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}"  FontStyle="{TemplateBinding FontStyle}" FontStretch="{TemplateBinding  FontStretch}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding  FontFamily}" HorizontalContentAlignment="{TemplateBinding  HorizontalContentAlignment}" IsChecked="{Binding IsExpanded, Mode=TwoWay,  RelativeSource={RelativeSource TemplatedParent}}" Margin="1" MinWidth="0"  MinHeight="0" Padding="{TemplateBinding Padding}" Style="{StaticResource  ExpanderDownHeaderStyle}" VerticalContentAlignment="{TemplateBinding  VerticalContentAlignment}"/>
                <ContentPresenter x:Name="ExpandSite" DockPanel.Dock="Bottom"  Focusable="false" HorizontalAlignment="{TemplateBinding  HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"  Visibility="Collapsed" VerticalAlignment="{TemplateBinding  VerticalContentAlignment}"/>
            </DockPanel>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsExpanded" Value="true">
                <Setter Property="Visibility" TargetName="ExpandSite"  Value="Visible"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <SolidColorBrush x:Key="MenuItem.Highlight.Background" Color="#3D26A0DA"/>
    <SolidColorBrush x:Key="MenuItem.Highlight.Border" Color="#FF26A0DA"/>
    <SolidColorBrush x:Key="Menu.Disabled.Foreground" Color="#FF707070"/>
    <SolidColorBrush x:Key="MenuItem.Highlight.Disabled.Background"  Color="#0A000000"/>
    <SolidColorBrush x:Key="MenuItem.Highlight.Disabled.Border"  Color="#21000000"/>
    <SolidColorBrush x:Key="MenuItem.Selected.Border" Color="#FF26A0DA"/>
    <SolidColorBrush x:Key="MenuItem.Selected.Background" Color="#3D26A0DA"/>
    <Geometry x:Key="Checkmark">F1 M 10.0,1.2 L 4.7,9.1 L 4.5,9.1 L 0,5.2 L  1.3,3.5 L 4.3,6.1L 8.3,0 L 10.0,1.2 Z</Geometry>
    <SolidColorBrush x:Key="Menu.Static.Foreground" Color="#FF212121"/>
    <Geometry x:Key="RightArrow">M 0,0 L 4,3.5 L 0,7 Z</Geometry>
    <SolidColorBrush x:Key="Menu.Static.Border" Color="#FF999999"/>
    <SolidColorBrush x:Key="Menu.Static.Background" Color="White"/>
    <SolidColorBrush x:Key="Menu.Static.Separator" Color="#FFD7D7D7"/>
    <ControlTemplate x:Key="{ComponentResourceKey  ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}"  TargetType="{x:Type MenuItem}">
        <Border x:Name="templateRoot" BorderBrush="{TemplateBinding BorderBrush}"  BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding  Background}" SnapsToDevicePixels="true">
            <Grid VerticalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <ContentPresenter x:Name="Icon" ContentSource="Icon"  HorizontalAlignment="Center" Height="18" Width="18" Margin="5,3,3,3"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"  VerticalAlignment="Center"/>
                <Path x:Name="GlyphPanel" Data="{StaticResource Checkmark}"  Fill="{TemplateBinding Foreground}" FlowDirection="LeftToRight" Margin="3"  Visibility="Collapsed" VerticalAlignment="Center"/>
                <ContentPresenter Grid.Column="1" ContentSource="Header"  Margin="{TemplateBinding Padding}" RecognizesAccessKey="True"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                <Popup x:Name="PART_Popup" AllowsTransparency="true"  Focusable="false" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource  TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static  SystemParameters.MenuPopupAnimationKey}}" Placement="Bottom"  PlacementTarget="{Binding ElementName=templateRoot}">
                    <Border x:Name="SubMenuBorder" Margin="10"  Background="{StaticResource Menu.Static.Background}">
                        <Border.Effect>
                            <DropShadowEffect BlurRadius="20" ShadowDepth="0"  Opacity="0.2" Color="Black" />
                        </Border.Effect>
                        <!--<ScrollViewer x:Name="SubMenuScrollViewer"  Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,  TypeInTargetAssembly={x:Type FrameworkElement}}}">-->
                            <Grid Margin="10">
                                <!--<Canvas HorizontalAlignment="Left" Height="0"  VerticalAlignment="Top" Width="0">
                                    <Rectangle x:Name="OpaqueRect" Fill="{Binding  Background, ElementName=SubMenuBorder}" Height="{Binding ActualHeight,  ElementName=SubMenuBorder}" Width="{Binding ActualWidth,  ElementName=SubMenuBorder}"/>
                                </Canvas>
                                <Rectangle Fill="{StaticResource  Menu.Static.Separator}" HorizontalAlignment="Left" Margin="29,2,0,2"  Width="1"/>-->
                                <ItemsPresenter x:Name="ItemsPresenter"  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="0"/>
                            </Grid>
                        <!--</ScrollViewer>-->
                    </Border>
                </Popup>
            </Grid>
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsSuspendingPopupAnimation" Value="true">
                <Setter Property="PopupAnimation" TargetName="PART_Popup"  Value="None"/>
            </Trigger>
            <Trigger Property="Icon" Value="{x:Null}">
                <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
            </Trigger>
            <Trigger Property="IsChecked" Value="true">
                <Setter Property="Visibility" TargetName="GlyphPanel"  Value="Visible"/>
                <Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
            </Trigger>
            <Trigger Property="IsHighlighted" Value="True">
                <Setter Property="Background" TargetName="templateRoot"  Value="{StaticResource MenuItem.Highlight.Background}"/>
                <Setter Property="BorderBrush" TargetName="templateRoot"  Value="{StaticResource MenuItem.Highlight.Border}"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="TextElement.Foreground" TargetName="templateRoot"  Value="{StaticResource Menu.Disabled.Foreground}"/>
                <Setter Property="Fill" TargetName="GlyphPanel"  Value="{StaticResource Menu.Disabled.Foreground}"/>
            </Trigger>
            <!--<Trigger Property="ScrollViewer.CanContentScroll"  SourceName="SubMenuScrollViewer" Value="false">
                <Setter Property="Canvas.Top" TargetName="OpaqueRect"  Value="{Binding VerticalOffset, ElementName=SubMenuScrollViewer}"/>
                <Setter Property="Canvas.Left" TargetName="OpaqueRect"  Value="{Binding HorizontalOffset, ElementName=SubMenuScrollViewer}"/>
            </Trigger>-->
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style TargetType="{x:Type MenuItem}" x:Key="MenuItemStyle">
        <Setter Property="Template" Value="{DynamicResource {ComponentResourceKey  ResourceId=TopLevelHeaderTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}}"/>
    </Style>
    <!--树形视图模版-->
    <HierarchicalDataTemplate x:Key="treeViewHierarchicalDataTemplate"  ItemsSource="{Binding Children}">
        <StackPanel Orientation="Horizontal">
            <Image Width="10" Height="17" Stretch="Uniform" Source="{Binding  HeaderImage}" VerticalAlignment="Center"/>
            <TextBlock Margin="5,0,0,0" FontFamily="微软雅黑" Text="{Binding  HeaderText}" Tag="{Binding Children}" VerticalAlignment="Center"/>
        </StackPanel>
    </HierarchicalDataTemplate>
    <Style x:Key="CompetenceTreeViewStyle" TargetType="{x:Type  kj:CompetenceTreeView}">
        <Setter Property="ItemTemplate" Value="{StaticResource  treeViewHierarchicalDataTemplate}"/>
        <Setter Property="TreeView.ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type TreeViewItem}">
                    <Setter Property="IsExpanded" Value="{Binding IsExpanded,  RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type  kj:CompetenceTreeView}}}" />
                </Style>
            </Setter.Value>
        </Setter>
    </Style>
    <!--树形视图模版-->
    <HierarchicalDataTemplate x:Key="newTypeHierarchicalDataTemplate"  ItemsSource="{Binding Children}">
        <StackPanel Orientation="Horizontal">
            <Image Width="12" Height="19" Stretch="Uniform" Source="{Binding  HeaderImage}" VerticalAlignment="Center"/>
            <TextBlock Margin="5,0,0,0" FontFamily="微软雅黑" Text="{Binding  HeaderText}" Tag="{Binding Children}" VerticalAlignment="Center"/>
        </StackPanel>
    </HierarchicalDataTemplate>
    <Style x:Key="NewTypeTreeViewStyle" TargetType="{x:Type  kj:CompetenceTreeView}">
        <Setter Property="TextBlock.FontSize" Value="14px"/>
        <Setter Property="ItemTemplate" Value="{StaticResource  newTypeHierarchicalDataTemplate}"/>
        <Setter Property="TreeView.ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type TreeViewItem}">
                    <Setter Property="IsExpanded" Value="True" />
                </Style>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type Expander}">
        <Setter Property="Padding" Value="0"/>
        <Setter Property="IsExpanded" Value="True"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template" Value="{StaticResource ExpanderTemplate}"/>
    </Style>
    <Style TargetType="{x:Type kj:UniversalTaskPanel}">
        <Style.Resources>
                <Style x:Key="LoopTextStyle" TargetType="{x:Type TextBlock}">
                    <Setter Property="Cursor" Value="Hand"/>
                    <Setter Property="FontFamily" Value="微软雅黑"/>
                    <Setter Property="FontSize" Value="18px"/>
                    <Setter Property="Foreground" Value="{StaticResource  TextBlock.Title.Color}"/>
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="HorizontalAlignment" Value="Center"/>
                    <Setter Property="TextAlignment" Value="Center"/>
                </Style>
                <Style x:Key="LoopLabelStyle" TargetType="{x:Type TextBlock}">
                    <Setter Property="FontFamily" Value="微软雅黑"/>
                    <Setter Property="FontSize" Value="14px"/>
                    <Setter Property="Foreground" Value="{StaticResource  TextBlock.Title.Color}"/>
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="HorizontalAlignment" Value="Center"/>
                </Style>
            <Style x:Key="LoopProcessBarStyle" TargetType="{x:Type  ac:LoopProcessBar}">
                <Setter Property="Height" Value="120"/>
                <Setter Property="Width" Value="120"/>
                <Setter Property="BorderThickness" Value="8"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
            </Style>
        </Style.Resources>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type kj:UniversalTaskPanel}">
                    <Border Background="White" Margin="5">
                        <Border.Effect>
                            <DropShadowEffect BlurRadius="5" ShadowDepth="0"  Opacity="0.2" Color="Black" />
                        </Border.Effect>
                        <Grid HorizontalAlignment="Center">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="35"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="{TemplateBinding TitelText}"  FontSize="16px" FontWeight="Bold" Style="{StaticResource LoopTextStyle}"/>
                            <ScrollViewer Grid.Row="1" Style="{StaticResource  ScrollViewerStyle}" HorizontalScrollBarVisibility="Auto"  VerticalScrollBarVisibility="Hidden">
                                <ContentControl Content="{TemplateBinding Content}"/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>           <Setter Property="Cursor" Value="Hand"/>
                    <Setter Property="FontFamily" Value="微软雅黑"/>
                    <Setter Property="FontSize" Value="18px"/>
                    <Setter Property="Foreground" Value="{StaticResource  TextBlock.Title.Color}"/>
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="HorizontalAlignment" Value="Center"/>
                    <Setter Property="TextAlignment" Value="Center"/>
                </Style>
                <Style x:Key="LoopLabelStyle" TargetType="{x:Type TextBlock}">
                    <Setter Property="FontFamily" Value="微软雅黑"/>
                    <Setter Property="FontSize" Value="14px"/>
                    <Setter Property="Foreground" Value="{StaticResource  TextBlock.Title.Color}"/>
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="HorizontalAlignment" Value="Center"/>
                </Style>
            <Style x:Key="LoopProcessBarStyle" TargetType="{x:Type  ac:LoopProcessBar}">
                <Setter Property="Height" Value="120"/>
                <Setter Property="Width" Value="120"/>
                <Setter Property="BorderThickness" Value="8"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
            </Style>
        </Style.Resources>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type kj:UniversalTaskPanel}">
                    <Border Background="White" Margin="5">
                        <Border.Effect>
                            <DropShadowEffect BlurRadius="5" ShadowDepth="0"  Opacity="0.2" Color="Black" />
                        </Border.Effect>
                        <Grid HorizontalAlignment="Center">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="35"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="{TemplateBinding TitelText}"  FontSize="16px" FontWeight="Bold" Style="{StaticResource LoopTextStyle}"/>
                            <ScrollViewer Grid.Row="1" Style="{StaticResource  ScrollViewerStyle}" HorizontalScrollBarVisibility="Auto"  VerticalScrollBarVisibility="Hidden">
                                <ContentControl Content="{TemplateBinding Content}"/>
                            </ScrollViewer>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>

 

相关标签: WPF学习