I want to add a simple (at least I thought it was) behaviour to my WPF TextBox.
TextBox
When the user presses Escape I want the TextBox he is editi
For me, it's quite tricky, especially when using with LostFocus binding. However, my workaround is to add an empty label and focus on it.
...
OnKeyDown(object sender, RoutedEventArgs e) { //if is Esc ResetFocusArea.Focus(); }