WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Keyboard Navigation

Edit

Question

Can I change the way a control reacts to Tab Navigation, Directional Navigation and Control Tab navigation?

Edit

Answer

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.

Edit

Related Links

KeyboardNavigationMode Enumeration

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.