O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Receiving Password Text Using a PasswordBox

PasswordBox works in much the same way as the TextBox, allowing the user to type or edit its contents. Each character entered into a PasswordBox, however, appears briefly, for two seconds or until another character is entered, whichever is shorter, and is then changed to an obscurity character. The obscurity character is a bullet character by default.

The obscurity character can be customized using the PasswordChar property. For example, to use a question mark instead of the default obscurity character, the following can be used:

<PasswordBox PasswordChar="?" />

The PasswordBox does not contain a Text property, but rather a Password property, which is used to retrieve (or set) the password string. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required