PasswordBoxStyle.xaml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <!--登录界面密码框样式-->
  4. <Style TargetType="PasswordBox">
  5. <Setter Property="Margin" Value="0,10" />
  6. <Setter Property="Height" Value="35" />
  7. <Setter Property="Width" Value="120" />
  8. <Setter Property="FontSize" Value="18" />
  9. <Style.Triggers>
  10. <Trigger Property="IsMouseOver" Value="True">
  11. <Setter Property="Foreground" Value="Green" />
  12. <Setter Property="BorderBrush" Value="Green" />
  13. <Setter Property="BorderThickness" Value="2" />
  14. </Trigger>
  15. </Style.Triggers>
  16. </Style>
  17. <Style TargetType="{x:Type PasswordBox}" x:Key="LoginPasswordBox">
  18. <Setter Property="FontSize" Value="20"></Setter>
  19. <Setter Property="Padding" Value="1,5,0,0"></Setter>
  20. <Setter Property="Height" Value="40"></Setter>
  21. <Setter Property="Width" Value="190"></Setter>
  22. <Setter Property="Background">
  23. <Setter.Value>
  24. <ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Login/输入框.png">
  25. </ImageBrush>
  26. </Setter.Value>
  27. </Setter>
  28. </Style>
  29. </ResourceDictionary>