EditCategory
Keyboard Navigation
EditQuestion
Can I change the way a control reacts to Tab Navigation, Directional Navigation and Control Tab navigation?
EditAnswer
Yes, the KeyboardNavigation class defines three attached properties that allow the modification of each of the navigation modes:
KeyboardNavigation.TabNavigation
KeyboardNavigation.DirectionalNavigation
KeyboardNavigation.ControlTabNavigation
Each of these properties is of the type KeyboardNavigationMode, which defines six possible values.
By setting any of these attached properties on a control, you affect the way the control behaves when keyboard navigation occurs.
By default, the three properties have the KeyboardNavigationMode.Continue value, but be aware that some controls override these values.
Refer to the related link for details on the six possible values.
EditRelated Links
KeyboardNavigationMode Enumeration