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’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...