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.


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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.