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 password reveal button if you set IsPasswordRevealButtonEnabled to true. This reveals the password while it is pressed, as demonstrated in Figure 11.27.

Image

FIGURE 11.27 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 character ...

Get Universal Windows® Apps with XAML and C# 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.