While creating a WPF application which includes a PasswordBox
control, I tried to set the PasswordChar
to display '<' instead of '*'. I wrote the following code:
<PasswordBox PasswordChar="<"></PasswordBox>
When using this code, the following error is reported:
Error 1 The value "<" is not valid in an attribute.
Use this instead:
<PasswordBox PasswordChar="<"></PasswordBox>
You'll find a comprehensive list of symbols and how to write them in XAML in this MSDN article: XML Character Entities and XAML
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With