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
I am wondering whether we need to do anything with the TextBox which is declared as private in the above file?
For example, we could set the TextBox to show the password if we need the clear text.
If yes, then this might be a feature request.
Thanks very much!
The text was updated successfully, but these errors were encountered:
Bo-Liu-BL
changed the title
Is is possible to show the pre-set password in clear text with the PasswordBox control?
Is it possible to show the pre-set password in clear text with the PasswordBox control?
Aug 31, 2020
In fact, there are other ways to achieve the purpose.
For example, I could define another TextBox which has the same position/size with the PasswordBox.
The logic is:
If need to show the password in clear text, then hide the PasswordBox control and show the TextBox with the password;
Otherwise keep the TextBox hidden and show the PasswordBox.
There have been similar solutions such as this post in stack overflow
However, it will be great to provide this function in the ModernWpf as the TextBox has been in place.
Hi experts,
Is it possible to show the pre-set password in clear text with the PasswordBox control?
I have a user scenario as the following:
Now I am blocked at the above step #4. The password wouldn't be shown in the PasswordBox.
Note: I am binding the password with another dependency property with the same way as the following:
http://dotnetharbour.blogspot.com/2014/10/mvvm-passwordbox-securepassword-and.html
For the 1st PasswordBox which is to show the password from remote server, the symptom is:
By inspecting the implementation of the DependencyObject PasswordBoxHelper:
https://github.com/Kinnara/ModernWpf/blob/master/ModernWpf/Controls/Primitives/PasswordBoxHelper.cs
I am wondering whether we need to do anything with the TextBox which is declared as private in the above file?
For example, we could set the TextBox to show the password if we need the clear text.
If yes, then this might be a feature request.
Thanks very much!
The text was updated successfully, but these errors were encountered: