You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot clear UnsafePassword in plaintext state by vm code #645
Describe the bug
After binding UnsafePassword to hc:PasswordBox, the value of UnsafePassword cannot be cleared by backend code in plaintext state, but can be cleared by ClearButton 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 state
Screenshots
Environment (please complete the following information):
Thanks for your reply.
It's works for me if I use the the internal command to clear, but in this case I wanna clear all params not just one element, and most of the time there is more than one element to clear.
And it make no sence cause other controls with the same binding method do not have this problem.
Thanks
There is still a concern not about Clear , it is Set value, cause when I set ShowEyeButton as true, I cannot set UnsafePassword in vm, means FrameworkPropertyMetadataOptions.BindsTwoWayByDefault not work any more.
Please review, thanks.
BTW, I declare Password in vm as below
`private string _Password;
public string Password
{
get { return _Password; }
set
{
_Password = value;
this.RaisePropertyChanged(nameof(Password));
}
}`
Activity
JeremyWu917 commentedon Jan 25, 2021
@ghost1372
pls help to check and advise
many thx
ghost1372 commentedon Jan 25, 2021
@JeremyWu917
I think it is a binding problem, You can use the internal command to clear
JeremyWu917 commentedon Jan 25, 2021
@ghost1372
Thanks for your reply.
It's works for me if I use the the internal command to clear, but in this case I wanna clear all params not just one element, and most of the time there is more than one element to clear.
And it make no sence cause other controls with the same binding method do not have this problem.
Thanks
JeremyWu917 commentedon Jan 27, 2021
Hi @NaBian @ghost1372
There is still a concern not about
Clear, it isSet value, cause when I setShowEyeButtonastrue, I cannot setUnsafePasswordin vm, meansFrameworkPropertyMetadataOptions.BindsTwoWayByDefaultnot work any more.Please review, thanks.
BTW, I declare
Passwordin vm as belowNaBian commentedon Jan 31, 2021
i can not reproduce your problem, can you provide a demo.
JeremyWu917 commentedon Feb 1, 2021
@NaBian
Thanks for your replay.
Here is the demo.

Thanks
NaBian commentedon Feb 1, 2021
还是无法复现

fixed HandyOrg#645