Sic08/FrameworkLocal/UICore/Style/PasswordBoxStyle.xaml

31 lines
1.3 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- 登录界面密码框样式 -->
<Style TargetType="PasswordBox">
<Setter Property="Margin" Value="0,10" />
<Setter Property="Height" Value="35" />
<Setter Property="Width" Value="120" />
<Setter Property="FontSize" Value="18" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="Green" />
<Setter Property="BorderBrush" Value="Green" />
<Setter Property="BorderThickness" Value="2" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="LoginPasswordBox" TargetType="{x:Type PasswordBox}">
<Setter Property="FontSize" Value="20" />
<Setter Property="Padding" Value="1,5,0,0" />
<Setter Property="Height" Value="40" />
<Setter Property="Width" Value="190" />
<Setter Property="Background">
<Setter.Value>
<ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Login/输入框.png" />
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>