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 .

Using PasswordBox for passwords in Windows Phone 7

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 🙂

    5 Comments

  1. ramki
    June 20, 2011
    Reply

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

  2. June 20, 2011
    Reply

    Hi Ramky ,

    Why do you want to show the password in the passwordbox instead of x or * character ?

    Why dont you use the textbox ??

  3. ramki
    June 21, 2011
    Reply

    thats not the answer, anyways, i found answer, thx.

  4. Stryker
    October 26, 2011
    Reply

    how did you implement it?

  5. hfrmobile
    August 31, 2012
    Reply

    Thanks a lot, just was searching …

    Btw, do you know the reason why System.Security.SecureString class is not on the Windows Phone?

Leave A Reply

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

You May Also Like

In this post, you will learn about sync provider notifications in Windows 11 and how to disable or enable it...
In this tutorial, let’s learn how to enable or disable the startup sound in Windows 11. By default, when Windows...
The CameraCaptureTask allows the Windows Phone 7 App to launch the Camera Application . This will be useful when the...