<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 TargetType="{x:Type PasswordBox}" x:Key="LoginPasswordBox"> <Setter Property="FontSize" Value="20"></Setter> <Setter Property="Padding" Value="1,5,0,0"></Setter> <Setter Property="Height" Value="40"></Setter> <Setter Property="Width" Value="190"></Setter> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Login/输入框.png"> </ImageBrush> </Setter.Value> </Setter> </Style> </ResourceDictionary>