ux: add a toggle button to reveal password

This commit is contained in:
leo 2024-07-09 15:26:46 +08:00
parent c16bed1d9f
commit 51a68027c8
No known key found for this signature in database
2 changed files with 19 additions and 1 deletions

View file

@ -62,7 +62,15 @@
Height="32"
Text="{Binding Passphrase, Mode=TwoWay}"
PasswordChar="*"
HorizontalAlignment="Stretch"/>
RevealPassword="{Binding ShowPassword, Mode=OneWay}"
HorizontalAlignment="Stretch">
<TextBox.InnerRightContent>
<ToggleButton Grid.Column="6"
Classes="toggle_untracked"
Width="26" Height="14"
IsChecked="{Binding ShowPassword, Mode=TwoWay}"/>
</TextBox.InnerRightContent>
</TextBox>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Button Classes="flat primary"