Textbox Keydown event not firing when arrow key press
Instead of that Use PreviewKeyDown
The KeyDown
event is not raised for navigational keys that would normally be handled by WPF, but the PreviewKeyDown
event is. You should set Handled=True
if you don't want WPF to also handle the key event.