<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Colors.xaml"/>
        <ResourceDictionary Source="TextStyle.xaml"/>
        <ResourceDictionary Source="ButtonStyle.xaml"/>
        <ResourceDictionary Source="IOStyle.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    <!-- 标准间隔 -->
    <Thickness x:Key="ControlMargin">5</Thickness>



    <Style TargetType="TextBlock" x:Key="Styles.Text.FieldContent.Led">
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Padding" Value="2 1 2 2"/>
        <Setter Property="Text" Value="[×]"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="Gray"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self} ,Path=Tag}" Value="true">
                <Setter Property="Text" Value="[√]"/>
                <Setter Property="Foreground" Value="Black"/>
                <Setter Property="Background" Value="LightGreen"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>


    <Style TargetType="TextBlock" x:Key="Styles.Text.IsConnected">
        <Setter Property="Text" Value="连接断开"/>
        <Setter Property="Background" Value="Red"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontWeight" Value="Black"/>
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Padding" Value="10,2"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self} ,Path=Tag}" Value="true">
                <Setter Property="Text" Value="连接成功"/>
                <Setter Property="Background" Value="Green"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
</ResourceDictionary>