I am developing a windows phone application.In that i ask the user to login.
On the login page the user has to enter password.
Now what I want is that i give user a check box which when selected should show the characters of the password.
I have not seen any property on password box to show password characters.
Please suggest some way to do it.
Don’t think that is possible with PasswordBox… just a thought, but you might accomplish the same result using a hidden TextBox and when the user clicks the CheckBox, you just hide the PasswordBox and show the TextBox; if he clicks again, you switch their Visibility state again, and so on…
Edit
And here it is how!
Just add a page, change the ContentPanel to a StackPanel and add this XAML code:
Next, on the page code, add the following:
This works fine, but with a few more work, you can do this fully MVVM’ed!