0
Password Box WPF
WPF text box doesn't have password mode, for the password purpose WPF have another control called password box.
To get the entered text use
password property of the password box.
example
string enteredpassword =passwordBox.Password;
if we use MVVM architecture We can't bind to public property of our View Model. Still we can do one thing to maintain MVVM, we can set the public property for the password box change event.
To get the entered text use
password property of the password box.
example
string enteredpassword =passwordBox.Password;
if we use MVVM architecture We can't bind to public property of our View Model. Still we can do one thing to maintain MVVM, we can set the public property for the password box change event.
Post a Comment