Using PasswordBox for passwords in Windows Phone 7

If you are a c# Windows Application Developer and searching on the Textbox properties to set the password character in Windows Phone 7 form like me , then you are wrong .

The WP7 form has the PasswordBox for this purpose .
The PasswordBox displays the content and then allows the user to type in the content . The content that is typed appears for 1-2 second and is replaced with the PasswordChar that the user provides .

Although the InputScopeNameValue enumeration exists for password , it did not have any effect on the PasswordBox.

To display the text that is typed in PasswordBox use the property “Password” instead of again searching for Text property :)

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
Pin It

8 thoughts on “Using PasswordBox for passwords in Windows Phone 7

  1. Is it possible to show the password itself instead of showing x chars, by setting a property based on some event?

  2. Pingback: Using PasswordBox for passwords in Windows Phone 7 | ProgramInDotnet

  3. Pingback: Using PasswordBox for passwords in Windows Phone 7MobileOSGeek

  4. Pingback: Interesting .NET Links - February 18 , 2011 | TechBlog

Leave a Reply

Your email address will not be published. Required fields are marked *