4

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 anyway... :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?

4

1 回答 1

0

您可以订阅 KeyUp 或 PreviewKeyUp 事件,侦听选项卡并做出相应响应。

于 2011-08-07T08:56:23.573 回答