PasswordBox

PasswordBox is a simple TextBox-style control designed for the entry of a password. Rather than display the text typed in, it displays little circles. Although it doesn’t have one by default, you can give it a Windows-style password reveal button if you set IsPasswordRevealButtonEnabled to true. This reveals the password while it is pressed, as demonstrated in Figure 12.24.

Image

FIGURE 12.24 The PasswordBox with IsPasswordRevealButtonEnabled=true

Although it would be a strange thing to do, you can customize the symbol used to mask the password by setting PasswordChar to any character. The default circle is the bullet character (Unicode ...

Get XAML 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.