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. ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.