What's the Best Way to Catch the Return Key in a PasswordBox? (WPF/XAML) -


What's the best way to catch a return key in a password box? (WPF / XAML)

I have a textbox field and a password box field on a login box (for username and password entry) I have a login button that fulfills the login verification process Invites you

The return key is required to respond in the password box in the same manner, so that the user has his username and password, and then return to log in.

Does anyone know how this is done in WPF? Any help is appreciated.

One easy mechanism for activating the button's code is WPF button class provided a property called IsDefault When set to true, if you focus on some objects when you return to the window, the code of the click event code will be automatically removed. This mechanism works like a magic with the password box .


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -