-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot clear UnsafePassword in plaintext state by vm code #645
Comments
@ghost1372 |
@JeremyWu917
|
Thanks for your reply. |
There is still a concern not about BTW, I declare
|
i can not reproduce your problem, can you provide a demo. |
Describe the bug
After binding
UnsafePassword
tohc:PasswordBox
, the value ofUnsafePassword
cannot be cleared by backend code in plaintext state, but can be cleared byClearButton
in frontend. And in ciphertext state, everything is ok.Expected behavior
The
value
should be cleared regardless of whether it is in plaintext or ciphertext stateScreenshots
Environment (please complete the following information):
Additional context
Here is the partial code
<hc:PasswordBox hc:InfoElement.Placeholder="请输入密码" IsSafeEnabled="False" ShowClearButton="True" ShowEyeButton="True" UnsafePassword="{Binding Password}" />
private string _Password;
public string Password { get { return _Password; } set { _Password = value; this.RaisePropertyChanged(nameof(Password)); } }
public DelegateCommand CancelCommand { get; set; } private void Cancel(object parameter) { Password = ""; }
The text was updated successfully, but these errors were encountered: