How to disable focus changes by arrow keys

后端 未结 3 700
栀梦
栀梦 2021-02-14 22:28

I have a WPF window with a few controls (buttons, groupboxes, etc) and one big Viewport3D within a Border.

The viewport shows a 3D scene and I

3条回答
  •  一向
    一向 (楼主)
    2021-02-14 23:03

    You can try

    KeyboardNavigation.TabNavigation = "Local"
    

    for not shifting your focus outside the Viewport3D.

提交回复
热议问题