Move focus in response to keyboard events in XAML
问题 I've got a WPF view with two textboxes. I'd like to automatically move focus forward from the first textbox to the second when the user hits the down arrow on the keyboard exactly like Tab does. It seems like I ought to be able to do this 100% declaratively, but for some reason the commands I thought would do this don't seem to do anything. Here is my first attempt that doesn't work: <StackPanel> <TextBox Text="Test"> <TextBox.InputBindings> <!-- I realize ComponentCommands.MoveFocusDown