<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!--datagrid  列头部样式-->
    <Style  x:Key="DataGridStyle" TargetType="DataGrid">
        <Setter Property="Background"  Value="Transparent"></Setter>
        <Setter Property="HorizontalAlignment"  Value="Center"></Setter>
        <Setter Property="VerticalAlignment"  Value="Center"></Setter> 
        <Setter Property="FontSize"  Value="20"></Setter>
    </Style>


    <!--datagrid  列头部样式-->
    <Style  x:Key="RowHeaderStyle" TargetType="{x:Type DataGridRow}" >
        <Style.Triggers>
            <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                <Setter Property="Background" Value="#354665" />
                <Setter Property="Height" Value="70" />  
            </Trigger>
            <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                <Setter Property="Background" Value="#495a7a" /> 
                <Setter Property="Height" Value="70" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style  x:Key="SmallRowHeaderStyle" TargetType="{x:Type DataGridRow}"  >
        <Style.Triggers>
            <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                <Setter Property="Background" Value="#354665" />
                <Setter Property="Height" Value="30" />
            </Trigger>
            <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                <Setter Property="Background" Value="#495a7a" />
                <Setter Property="Height" Value="30" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <!--datagrid 列头样式-->
    <Style    x:Key="ColumnHeaderStyle"   TargetType="DataGridColumnHeader">
        <Setter Property="Height"  Value="60"></Setter>
        <Setter Property="Background"  Value="Transparent"></Setter>
        <Setter Property="Foreground"  Value="White"></Setter>
        <Setter Property="FontSize"  Value="30"></Setter>
        <Setter Property="FontFamily" Value="微软雅黑"/>
        <Setter  Property="HorizontalContentAlignment" Value="Center"></Setter>
        <Style.Triggers>
            <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                <Setter Property="Background" Value="#283f69" />
            </Trigger>
            <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                <Setter Property="Background" Value="#314468" />
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style     x:Key="ColumnContentStyle"    TargetType="{x:Type TextBlock}" > 
        <Setter Property="Foreground"  Value="White"></Setter>
        <Setter Property="FontSize" Value="20"></Setter> 
        <Setter Property="HorizontalAlignment" Value="Center"></Setter>
        <Setter Property="VerticalAlignment" Value="Center"></Setter>
        <Setter Property="FontFamily" Value="微软雅黑"/>
        <Setter Property="TextWrapping" Value="Wrap" />
    </Style>

    <Style   TargetType="DataGridCell" >
        <Setter Property="Foreground"  Value="White"></Setter>
        <Setter Property="FontSize" Value="20"></Setter>
    </Style>




    <Style x:Key="TableItem" TargetType="TabItem">
        <Setter Property="Width" Value="100" ></Setter>
        <Setter Property="Height" Value="30"></Setter>
        <Setter Property="FontSize" Value="20"></Setter>
        <Setter Property="Background" Value="#0C2033"></Setter>
        <Setter Property="Foreground" Value="White"></Setter>
        <Setter Property="FontFamily" Value="微软雅黑"/>
        <Style.Triggers>
            <Trigger  Property="IsMouseOver" Value="True" >
                <Setter Property="Background" Value="White"></Setter>
                <Setter Property="Foreground" Value="#0C2033"></Setter>
            </Trigger>

            <Trigger  Property="IsSelected"  Value="True" >
                <Setter Property="Background" Value="White"></Setter>
                <Setter Property="Foreground" Value="Black"></Setter>
            </Trigger>
            <Trigger  Property="IsFocused"  Value="True" >
                <Setter Property="Background" Value="White"></Setter>
                <Setter Property="Foreground" Value="Black"></Setter>
            </Trigger>

        </Style.Triggers>
    </Style>

</ResourceDictionary>