From the course: Windows Presentation Foundation 5: Interaction and Controls

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Password input

Password input

From the course: Windows Presentation Foundation 5: Interaction and Controls

Start my 1-month free trial

Password input

- [Instructor] In most cases, when asking for a password in an application, it's helpful to mask the input text so that it's impossible for outsiders to read. Here's an example. I've asked for a password. When I type in this editor the individual characters are replaced with this circle symbol this is the most common symbol that you see sometimes it's an asterisk. It doesn't matter what it is as long as it's hiding what you're typing. So, here's an example of another editor where we're using a different symbol but you still can't tell what I'm typing. I'm using the password box, which is the control that optimized for working with passwords. Let's take a look. I've got two of these on this page. Here's the sample one. Password box. Here's the second one. And here's how I replace the hiding char. It's called the password char. And you see that I can pre load the data. So, I'm loading the password with this value here. You can also read it. It's a read, write property. So, I could say…

Contents