WPF controls in Winforms do not update access keys/mnemonic underlines

一世执手 提交于 2019-12-11 03:55:28

问题


I have a Winform with a menu strip that hosts a WPF control that has some buttons. The toolStripMenuItems and the WPF buttons all have access keys set up.

When I hit "Alt", the letters for all the access keys become underlined as expected. When I hit the "Alt" key a second time the lines disappear on the toolstripMenuItems but not on the WPF buttons. The access keys still work.

It appears that the UI is not keeping up with the keystrokes. Is this by design? And how do I get uniform behavior across all controls in my app?

来源:https://stackoverflow.com/questions/32236272/wpf-controls-in-winforms-do-not-update-access-keys-mnemonic-underlines

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!