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.


  1. ramki June 20, 2011 Reply
    • Senthil Kumar June 20, 2011 Reply
      • ramki June 21, 2011 Reply
        • Stryker October 26, 2011 Reply
  2. Using PasswordBox for passwords in Windows Phone 7 | ProgramInDotnet August 1, 2011 Reply
  3. hfrmobile August 31, 2012 Reply

Leave a Reply


Interesting BlogPosts to read

How to get an Enumerator from range of elements from ArrayList in C# ?
The code snippet shown in this blog post demonstrates how you can get the enumeraor from a range of ...
How to check for the column name in an SqlDataReader Object in C# ?
When working in ADO.NET for data access , there are times when you want to check to see if a column ...
Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...