开发者

Tab to next control from within the datagrid

开发者 https://www.devze.com 2023-03-09 04:10 出处:网络
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

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

精彩评论

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

关注公众号