<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf">
    
    <!--颜色-->
    <SolidColorBrush x:Key="TextBrush" Color="#4C4949" />
    <SolidColorBrush x:Key="GrayBrush1" Color="#FF727272"/>
    <SolidColorBrush x:Key="GrayBrush2" Color="#FF858484" />
    <!--在图表中描述字符串的透明背景-->
    <SolidColorBrush x:Key="TextTransparentBackgroundBrush" Color="#99FFFFFF"/>
    
    <SolidColorBrush x:Key="SemiTransparentGreyBrush2" Color="#99FFFFFF"/>
    <SolidColorBrush x:Key="SemiTransparentGreyBrush" Color="#99F0F0F0"/>
    <SolidColorBrush x:Key="SemiTransparentActiveBrush" Color="#50008BE5"/>
    <SolidColorBrush x:Key="WhiteBrush" Color="White"/>

    <!--尺寸-->
    <sys:Double x:Key="FontSize.Title">15</sys:Double>
    <sys:Double x:Key="FontSize.Value">15</sys:Double>
    <sys:Double x:Key="FontSize.Unit">15</sys:Double>

    <Thickness x:Key="TextMargin">2.5 0</Thickness>

    <sys:Double x:Key="GraphInfoRowMaxHeight">19</sys:Double>
    <sys:Double x:Key="GraphInfo2RowMaxHeight">38</sys:Double>

    <!--字体-->
    <Style x:Key="TitleStyle" TargetType="TextBlock">
        <Setter Property="Padding" Value="5,2"/>
        <Setter Property="Width" Value="50"/>
        <Setter Property="Foreground" Value="{StaticResource GrayBrush1}"/>
        <Setter Property="FontSize" Value="{StaticResource FontSize.Title}"/>
        <Setter Property="TextAlignment" Value="Right"/>
    </Style>
    <Style x:Key="ValueStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource TextBrush}"/>
        <Setter Property="FontSize" Value="{StaticResource FontSize.Value}"/>
        <Setter Property="Padding" Value="5,2"/>
    </Style>
    <Style x:Key="UnitStyle" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource GrayBrush2}"/>
        <Setter Property="FontSize" Value="{StaticResource FontSize.Unit}"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
    </Style>

    <!--Axis.Section-->
    <!--图表中选择器-->
    <Style x:Key="Styles.Axis.Section.Selected" TargetType="lvc:AxisSection" >
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="DataLabel" Value="False"/>
        <Setter Property="DisableAnimations" Value="True"/>
        <Setter Property="DataLabelForeground" Value="White"/>
        <Setter Property="Opacity" Value="0.1"/>

        <Setter Property="Stroke" Value="#40CA000C"/>
        <Setter Property="Fill" Value="#20CA000C"/>
    </Style>

    <!--图表中放大用选择器-->
    <Style x:Key="Styles.Axis.Section.Selected.ZoomIn" TargetType="lvc:AxisSection" >
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="DataLabel" Value="True"/>
        <Setter Property="DisableAnimations" Value="True"/>
        <Setter Property="DataLabelForeground" Value="White"/>
        <Setter Property="Opacity" Value="0.5"/>
        <Setter Property="Stroke" Value="{StaticResource MahApps.Brushes.Accent}"/>
    </Style>
    
    <!--扫描图，纵向趋势图Y轴 标签-->
    <Style x:Key="AxisSectionStyle" TargetType="lvc:AxisSection" >
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="DataLabel" Value="True"/>
        <Setter Property="DisableAnimations" Value="True"/>
        <Setter Property="DataLabelForeground" Value="White"/>
        <Setter Property="Opacity" Value="0.5"/>
        <Setter Property="Panel.ZIndex" Value="1"/>
    </Style>

    <!--扫描图，纵向趋势图Y轴 标签 公差，目标值，上下限-->
    <Style x:Key="Styles.Axis.Section.Tolerance" TargetType="lvc:AxisSection" >
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="DataLabel" Value="True"/>
        <Setter Property="DisableAnimations" Value="True"/>
        <Setter Property="DataLabelForeground" Value="White"/>
        <Setter Property="Opacity" Value="0.5"/>
        <Setter Property="Panel.ZIndex" Value="1"/>
        <Setter Property="StrokeDashArray" Value="3"/>
    </Style>
</ResourceDictionary>