| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 | <ResourceDictionary	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:ctrl="clr-namespace:OpenSEMI.Ctrlib.Controls"    x:Class=" MECF.Framework.UI.Client.Themes.lightgreen.TextBoxEx3">    <!-- TextBox Style -->    <SolidColorBrush x:Key="TextBox_BD" Color="#FF1B1B1B"/>    <SolidColorBrush x:Key="TextBox_BG" Color="White"/>    <SolidColorBrush x:Key="TextBox_InnerBD" Color="#FFD6D6D6"/>    <SolidColorBrush x:Key="TextBox_InnerLeft" Color="#FF898989"/>    <SolidColorBrush x:Key="TextBox_InnerTop" Color="#FF565656"/>    <SolidColorBrush x:Key="TextBox_InnerRight" Color="#FFD8D8D8"/>    <SolidColorBrush x:Key="TextBox_InnerBottom" Color="#FFE0E0E0"/>    <SolidColorBrush x:Key="TextBox_InnerBD_Unable" Color="#FFBEBDBD"/>    <SolidColorBrush x:Key="TextBox_InnerLeft_Unable" Color="#FFABABAB"/>    <SolidColorBrush x:Key="TextBox_InnerTop_Unable" Color="#FFB4B4B4"/>    <SolidColorBrush x:Key="TextBox_InnerRight_Unable" Color="#FFE7E7E7"/>    <SolidColorBrush x:Key="TextBox_InnerBottom_Unable" Color="#FFE7E7E7"/>    <Style x:Key="ShowTextBox" TargetType="{x:Type ctrl:TextBoxEx}">        <EventSetter Event="PreviewMouseLeftButtonDown" Handler="OnClick"></EventSetter>        <Setter Property="SnapsToDevicePixels" Value="False"/>        <Setter Property="FontFamily" Value="Arial" />        <Setter Property="FontSize" Value="12" />        <Setter Property="BorderThickness" Value="1,1,1,1"/>        <Setter Property="MinHeight" Value="20" />        <Setter Property="Background" Value="{DynamicResource TextBox_BG}" />        <Setter Property="Foreground" Value="Black" />        <Setter Property="BorderBrush" Value="{DynamicResource TextBox_BD}"/>        <Setter Property="Padding" Value="5,1"/>        <Setter Property="HorizontalContentAlignment" Value="Left"/>        <Setter Property="VerticalContentAlignment" Value="Center"/>        <Setter Property="AllowDrop" Value="true"/>        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>        <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>        <Setter Property="Template">            <Setter.Value>                <ControlTemplate TargetType="{x:Type ctrl:TextBoxEx}">                    <Grid>                        <Border x:Name="TextBox_Outer" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="4"							BorderBrush="#FF20c9b4" BorderThickness="{TemplateBinding BorderThickness}"  Background="{TemplateBinding Background}">                            <Border x:Name="TextBox_Inner" BorderBrush="{DynamicResource TextBox_InnerBD}"  CornerRadius="4" BorderThickness="1,1,1,1" Padding="{TemplateBinding Padding}"/>                        </Border>                        <Rectangle x:Name="Lfet_Boder" Fill="Transparent" HorizontalAlignment="Left" Width="1" Margin="1"/>                        <Rectangle x:Name="Top_Boder" Fill="Transparent" VerticalAlignment="Top" Height="1" Margin="1"/>                        <Rectangle x:Name="Right_Boder" Fill="Transparent" HorizontalAlignment="Right" Width="1" Margin="1"/>                        <Rectangle x:Name="Bottom_Boder" Fill="Transparent" VerticalAlignment="Bottom" Height="1" Margin="1"/>                        <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>                    </Grid>                    <ControlTemplate.Triggers>                        <Trigger Property="IsEnabled" Value="false">                            <Setter Property="BorderBrush" TargetName="TextBox_Outer" Value="{DynamicResource TextBox_BD_Unable}"/>                            <Setter Property="Background" TargetName="TextBox_Outer" Value="#FFf3f3f3"/>                            <Setter Property="BorderBrush" TargetName="TextBox_Inner" Value="#FF20c9b4"/>                            <Setter Property="Fill" TargetName="Lfet_Boder" Value="Transparent"/>                            <Setter Property="Fill" TargetName="Top_Boder" Value="Transparent"/>                            <Setter Property="Fill" TargetName="Right_Boder" Value="Transparent"/>                            <Setter Property="Fill" TargetName="Bottom_Boder" Value="Transparent"/>                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>                        </Trigger>                    </ControlTemplate.Triggers>                </ControlTemplate>            </Setter.Value>        </Setter>    </Style>    <Style x:Key="CommonTextBox" TargetType="{x:Type ctrl:TextBoxEx}">        <EventSetter Event="PreviewMouseLeftButtonDown" Handler="OnClick"></EventSetter>        <Setter Property="SnapsToDevicePixels" Value="True"/>        <Setter Property="FontFamily" Value="Arial" />        <Setter Property="FontSize" Value="12" />        <Setter Property="BorderThickness" Value="1,1,0,0"/>        <Setter Property="MinHeight" Value="20" />        <Setter Property="Background" Value="{DynamicResource TextBox_BG}" />        <Setter Property="Foreground" Value="Black" />        <Setter Property="BorderBrush" Value="{DynamicResource TextBox_BD}"/>        <Setter Property="Padding" Value="5,1"/>        <Setter Property="HorizontalContentAlignment" Value="Center"/>        <Setter Property="VerticalContentAlignment" Value="Center"/>        <Setter Property="AllowDrop" Value="true"/>        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>        <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>        <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>        <Setter Property="Template">            <Setter.Value>                <ControlTemplate TargetType="{x:Type ctrl:TextBoxEx}">                    <Grid>                        <Border x:Name="TextBox_Outer" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"							BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">                            <Border x:Name="TextBox_Inner" BorderBrush="{DynamicResource TextBox_InnerBD}" BorderThickness="0,0,1,1" Padding="{TemplateBinding Padding}"/>                        </Border>                        <Rectangle x:Name="Lfet_Boder" Fill="{DynamicResource TextBox_InnerLeft}" HorizontalAlignment="Left" Width="1" Margin="1"/>                        <Rectangle x:Name="Top_Boder" Fill="{DynamicResource TextBox_InnerTop}" VerticalAlignment="Top" Height="1" Margin="1"/>                        <Rectangle x:Name="Right_Boder" Fill="{DynamicResource TextBox_InnerRight}" HorizontalAlignment="Right" Width="1" Margin="1,2,1,1"/>                        <Rectangle x:Name="Bottom_Boder" Fill="{DynamicResource TextBox_InnerBottom}" VerticalAlignment="Bottom" Height="1" Margin="1,1,2,1"/>                        <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>                    </Grid>                    <ControlTemplate.Triggers>                        <Trigger Property="IsEnabled" Value="false">                            <Setter Property="BorderBrush" TargetName="TextBox_Outer" Value="{DynamicResource TextBox_BD_Unable}"/>                            <Setter Property="Background" TargetName="TextBox_Outer" Value="{DynamicResource TextBox_BG_Unable}"/>                            <Setter Property="BorderBrush" TargetName="TextBox_Inner" Value="{DynamicResource TextBox_InnerBD_Unable}"/>                            <Setter Property="Fill" TargetName="Lfet_Boder" Value="{DynamicResource TextBox_InnerLeft_Unable}"/>                            <Setter Property="Fill" TargetName="Top_Boder" Value="{DynamicResource TextBox_InnerTop_Unable}"/>                            <Setter Property="Fill" TargetName="Right_Boder" Value="{DynamicResource TextBox_InnerRight_Unable}"/>                            <Setter Property="Fill" TargetName="Bottom_Boder" Value="{DynamicResource TextBox_InnerBottom_Unable}"/>                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>                        </Trigger>                    </ControlTemplate.Triggers>                </ControlTemplate>            </Setter.Value>        </Setter>    </Style>    <Style TargetType="ctrl:TextBoxEx"  BasedOn="{StaticResource CommonTextBox}"/></ResourceDictionary>
 |