From 51a68027c8ee90bf904408ec3a52f18e2594b982 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 9 Jul 2024 15:26:46 +0800 Subject: [PATCH] ux: add a toggle button to reveal password --- src/Views/Askpass.axaml | 10 +++++++++- src/Views/Askpass.axaml.cs | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Views/Askpass.axaml b/src/Views/Askpass.axaml index 11d87a45..0c88cccf 100644 --- a/src/Views/Askpass.axaml +++ b/src/Views/Askpass.axaml @@ -62,7 +62,15 @@ Height="32" Text="{Binding Passphrase, Mode=TwoWay}" PasswordChar="*" - HorizontalAlignment="Stretch"/> + RevealPassword="{Binding ShowPassword, Mode=OneWay}" + HorizontalAlignment="Stretch"> + + + +