Interpret enter as tab WPF

后端 未结 5 1984
醉酒成梦
醉酒成梦 2021-02-01 18:52

I want to interpret Enter key as Tab key in whole my WPF application, that is, everywhere in my application when user press Enter I want to focus the next focusable control,exce

5条回答
  •  遥遥无期
    2021-02-01 19:29

    woodyiii, There is a function in the UIElement called PredictFocus() which by its name know its function, then you can check if that element is enabled or not so as to move the focus to it or not...

提交回复
热议问题