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.
精彩评论