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="?" />
PasswordBox does not contain a
Text property, but rather a
Password property, which is used to retrieve (or set) the password string. ...