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

    <!--TextBox默认样式-->
    <Style TargetType="{x:Type TextBox}" x:Key="txtBoxBaseStyle">
        <Setter Property="Width" Value="100"/>
        <Setter Property="Height" Value="28"/>
        <Setter Property="BorderBrush" Value="#FF105190"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="3,0"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Color="White" Offset="0"/>
                    <GradientStop Color="#FFE4E4E4" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TextBox}">
                    <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" CornerRadius="3" >
                        <ScrollViewer  x:Name="PART_ContentHost" Focusable="False" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" TargetName="border" Value="0.56"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True"/>
                                <Condition Property="IsReadOnly" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" TargetName="border" Value="White"/>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="TextBox" x:Key="textBoxStyle11" BasedOn="{StaticResource txtBoxBaseStyle}">
        <Setter Property="Height" Value="25"/>
    </Style>

    <Style TargetType="TextBox" x:Key="textBoxStyle" BasedOn="{StaticResource txtBoxBaseStyle}">
        <Setter Property="Margin" Value="3,0,0,0"/>
    </Style>

    <Style TargetType="TextBox" x:Key="textBoxStyle2" BasedOn="{StaticResource txtBoxBaseStyle}">
        <Setter Property="BorderBrush" Value="#FF075AE1"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Background" Value="Transparent"/>
        <!--<Setter.Value>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Color="White" Offset="0"/>
                    <GradientStop Color="#FFE4E4E4" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>-->

        <Setter Property="Margin" Value="3,0,0,0"/>
    </Style>

    <Style TargetType="TextBox" x:Key="textBoxBottleStyle" BasedOn="{StaticResource txtBoxBaseStyle}">
        <Setter Property="Width" Value="40"/>
        <Setter Property="Height" Value="20"/>
        <Setter Property="Margin" Value="0"/>
    </Style>

    <Style TargetType="TextBox" x:Key="readonlyTextBoxStyle" BasedOn="{StaticResource txtBoxBaseStyle}">
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="Background" Value="#FFEEEAEA" />
        <Setter Property="Width" Value="180" />
        <Setter Property="Foreground" Value="#FF3E8AB1" />
    </Style>
    
    <Style TargetType="TextBox" x:Key="readonlyBottleTextBoxStyle" BasedOn="{StaticResource txtBoxBaseStyle}">
        <Setter Property="BorderBrush" Value="LightGray" />
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="Background" Value="White" />
        <Setter Property="Width" Value="40"/>
        <Setter Property="Height" Value="18"/>
        <Setter Property="Margin" Value="0"/>
        <Setter Property="Foreground" Value="#FF3E8AB1" />
    </Style>

</ResourceDictionary>