I have a WPF window with a text box. I’d like to detect when a user presses either the Enter key or Tab key. When either of these keys are pressed, I’d like to bind to an action in our view model. Could someone show me how this can be done?
Share
Handle the
KeyDownevent.Or use commands:
If you have not used commands before make sure to read this overview.