Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to provide keyboard navigation in NavBar

$
0
0

This example demonstrates how to allow an end-user to navigate between NavBar groups and items using the keyboard.


The solution provides the following key combinations:

- Tab/Shift+Tab to change a group;

- Up/Down to go to the previous/next NavBar item;

- Left/Right to reduce/expand a selected group;

 


To enable this feature in your application, we have created a NavBarKeyboardHelper class, which can be used as attached behavior for NavBarControl. For instance:

[XML]
<dxn:NavBarControl><i:Interaction.Behaviors><dxm:NavBarKeyboardHelper/></i:Interaction.Behaviors><dxn:NavBarControl>

 

The Silverlight version has one limitation: it does not support themes. We have adapted only the Seven theme to enable this feature.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>