Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;Window.Resources&gt; &lt;Style x:Key="TextBoxUserStyle" BasedOn="{x:Null}" TargetType="{x:Type TextBox}"&gt; &lt;Setter Property="Foreground" Value="Black"/&gt; &lt;Setter Property="HorizontalAlignment" Value="Center"/&gt; &lt;Setter Property="VerticalContentAlignment" Value="Center"/&gt; &lt;Setter Property="Width" Value="225"/&gt; &lt;Setter Property="Height" Value="25"/&gt; &lt;Setter Property="FontSize" Value="12"/&gt; &lt;Setter Property="Padding" Value="1"/&gt; &lt;Setter Property="Margin" Value="5"/&gt; &lt;Setter Property="AllowDrop" Value="true"/&gt; &lt;Setter Property="FocusVisualStyle" Value="{x:Null}"/&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="{x:Type TextBox}"&gt; &lt;Border x:Name="OuterBorder" BorderBrush="#5AFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4"&gt; &lt;Border x:Name="InnerBorder" Background="#FFFFFFFF" BorderBrush="#33000000" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3"&gt; &lt;ScrollViewer SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" x:Name="PART_ContentHost"/&gt; &lt;/Border&gt; &lt;/Border&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; &lt;Style x:Key="PasswordBoxVistaStyle" BasedOn="{x:Null}" TargetType="{x:Type PasswordBox}"&gt; &lt;Setter Property="Foreground" Value="Black"/&gt; &lt;Setter Property="HorizontalAlignment" Value="Center"/&gt; &lt;Setter Property="VerticalContentAlignment" Value="Center"/&gt; &lt;Setter Property="Width" Value="225"/&gt; &lt;Setter Property="Height" Value="25"/&gt; &lt;Setter Property="FontSize" Value="12"/&gt; &lt;Setter Property="Padding" Value="1"/&gt; &lt;Setter Property="Margin" Value="5"/&gt; &lt;Setter Property="AllowDrop" Value="true"/&gt; &lt;Setter Property="FocusVisualStyle" Value="{x:Null}"/&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="{x:Type PasswordBox}"&gt; &lt;Border x:Name="OuterBorder" BorderBrush="#5AFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4"&gt; &lt;Border x:Name="InnerBorder" Background="#FFFFFFFF" BorderBrush="#33000000" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3"&gt; &lt;Grid&gt; &lt;Label x:Name="lblPwd" Content="Password" FontSize="11" VerticalAlignment="Center" Margin="2,0,0,0" FontFamily="Verdana" Foreground="#828385" Padding="0"/&gt; &lt;ScrollViewer SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" x:Name="PART_ContentHost"/&gt; &lt;/Grid&gt; &lt;/Border&gt; &lt;/Border&gt; &lt;ControlTemplate.Triggers&gt; &lt;Trigger Property="IsFocused" Value="True"&gt; &lt;Setter Property="Visibility" TargetName="lblPwd" Value="Hidden"/&gt; &lt;/Trigger&gt; &lt;/ControlTemplate.Triggers&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; &lt;/Window.Resources&gt; &lt;PasswordBox Style="{StaticResource PasswordBoxVistaStyle}" Margin="169,143,22,0" Name="txtPassword" FontSize="14" TabIndex="2" Height="31" VerticalAlignment="Top" /&gt; </code></pre> <p>This can help check it with your code.When applied to password box,it will show Password,which will disappear when usertypes.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload