mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-23 09:56:35 +08:00
feat: add default Password character to TextBox.
This commit is contained in:
@@ -20,12 +20,11 @@
|
|||||||
Width="500"
|
Width="500"
|
||||||
InnerLeftContent="http://"
|
InnerLeftContent="http://"
|
||||||
InnerRightContent=".com" />
|
InnerRightContent=".com" />
|
||||||
<TextBox Width="300" Classes="clearButton" />
|
<TextBox Width="300" Classes="clearButton" Text="click to clear"/>
|
||||||
<TextBox Width="300" PasswordChar="*" />
|
<TextBox Width="300" Classes="revealPasswordButton" PasswordChar="*" Text="123456"/>
|
||||||
<TextBox
|
<TextBox
|
||||||
Width="300"
|
Width="300"
|
||||||
Classes="ClearButton RevealPasswordButton"
|
Classes="ClearButton RevealPasswordButton"
|
||||||
PasswordChar="*"
|
|
||||||
Text="123456" />
|
Text="123456" />
|
||||||
<TextBox
|
<TextBox
|
||||||
Width="500"
|
Width="500"
|
||||||
|
|||||||
@@ -172,6 +172,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^.revealPasswordButton, ^.RevealPasswordButton">
|
<Style Selector="^.revealPasswordButton, ^.RevealPasswordButton">
|
||||||
|
<Setter Property="PasswordChar" Value="•"/>
|
||||||
<Style Selector="^ /template/ ToggleButton#PART_RevealButton">
|
<Style Selector="^ /template/ ToggleButton#PART_RevealButton">
|
||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -379,6 +380,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^.revealPasswordButton, ^.RevealPasswordButton">
|
<Style Selector="^.revealPasswordButton, ^.RevealPasswordButton">
|
||||||
|
<Setter Property="PasswordChar" Value="•"/>
|
||||||
<Style Selector="^ /template/ ToggleButton#PART_RevealButton">
|
<Style Selector="^ /template/ ToggleButton#PART_RevealButton">
|
||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|||||||
Reference in New Issue
Block a user