What's the best way to catch the return key in a PasswordBox? (WPF/XAML)
I have a TextBox field and a PasswordBox field on my login form (for username and password entry). I also have a login button which invokes the method that performs the login validation process.
I need to make the Return key react the same way in the PasswordBox, so that the user can have the option enter their username and password and simply hit Return to log in.
Does anyone know how this is done in WPF? Any help is appreciated.