68 lines
3.3 KiB
Plaintext
68 lines
3.3 KiB
Plaintext
|
<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="SnapsToDevicePixels" Value="True" />
|
||
|
<Setter Property="FontSize" Value="16" />
|
||
|
<Setter Property="BorderThickness" Value="2,2,0,0" />
|
||
|
<Setter Property="MinHeight" Value="20" />
|
||
|
<Setter Property="Background" Value="{DynamicResource LoginTextBox_BG}" />
|
||
|
<Setter Property="Foreground" Value="Black" />
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource LoginTextBox_ShadowBD}" />
|
||
|
<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 PasswordBox}">
|
||
|
<Grid>
|
||
|
<Border
|
||
|
x:Name="Focus_Border"
|
||
|
BorderBrush="#FFFFEA00"
|
||
|
BorderThickness="2"
|
||
|
Opacity="0" />
|
||
|
<Border
|
||
|
Margin="2"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}">
|
||
|
<Border
|
||
|
x:Name="Inner_BG"
|
||
|
BorderBrush="{DynamicResource LoginTextBox_HighlightBD}"
|
||
|
BorderThickness="0,0,2,2">
|
||
|
<ScrollViewer
|
||
|
x:Name="PART_ContentHost"
|
||
|
Margin="{TemplateBinding Padding}"
|
||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||
|
</Border>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
<ControlTemplate.Triggers>
|
||
|
<Trigger Property="IsFocused" Value="True">
|
||
|
<Setter TargetName="Focus_Border" Property="Opacity" Value="1" />
|
||
|
</Trigger>
|
||
|
</ControlTemplate.Triggers>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
</ResourceDictionary>
|