开发者

Tab to next control from within the datagrid

The use of tab keys within the WPF datagrid is my big issue these days. Oh, the datagrid. Why does it behave like it does an开发者_运维问答yway... :S

1st: I want to disable the ability to use the tab key within the datagrid. Once the focus is set within the datagrid I want to use the arrow keys to navigate.

2nd: If the user hits the tab key within the datagrid I want to jump out of the datagrid and get focus of the next element after the datagrid in the correct tab order.

Any way I can accomplish this?


You could subscribe to the KeyUp or PreviewKeyUp event, listen for a tab and respond accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜