Interpret enter as tab WPF

后端 未结 5 1982
醉酒成梦
醉酒成梦 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:30

    You can use my EnterKeyTraversal attached property code if you like. Add it to the top-level container on a WPF window and everything inside will treat enter as tab:

    
        ...
    
    

提交回复
热议问题