feat: add default Password character to TextBox.

This commit is contained in:
Zhang Dian
2024-12-01 18:54:43 +08:00
parent 266fdade35
commit 2bded9434b
2 changed files with 4 additions and 3 deletions

View File

@@ -20,12 +20,11 @@
Width="500"
InnerLeftContent="http://"
InnerRightContent=".com" />
<TextBox Width="300" Classes="clearButton" />
<TextBox Width="300" PasswordChar="*" />
<TextBox Width="300" Classes="clearButton" Text="click to clear"/>
<TextBox Width="300" Classes="revealPasswordButton" PasswordChar="*" Text="123456"/>
<TextBox
Width="300"
Classes="ClearButton RevealPasswordButton"
PasswordChar="*"
Text="123456" />
<TextBox
Width="500"

View File

@@ -172,6 +172,7 @@
</Style>
</Style>
<Style Selector="^.revealPasswordButton, ^.RevealPasswordButton">
<Setter Property="PasswordChar" Value="•"/>
<Style Selector="^ /template/ ToggleButton#PART_RevealButton">
<Setter Property="IsVisible" Value="True" />
</Style>
@@ -379,6 +380,7 @@
</Style>
</Style>
<Style Selector="^.revealPasswordButton, ^.RevealPasswordButton">
<Setter Property="PasswordChar" Value="•"/>
<Style Selector="^ /template/ ToggleButton#PART_RevealButton">
<Setter Property="IsVisible" Value="True" />
</Style>