In a WPF-Menu I want to use identical shortcuts in the toplevel-menu and a submenu:
在WPF菜单中,我想在顶层菜单和子菜单中使用相同的快捷方式:
<Menu>
<MenuItem Header="_File" />
<MenuItem Header="E_xtra">
<MenuItem Header="_Format">
<MenuItem Header="_Organize">
</MenuItem>
</Menu>
In WinForms-menus, if you enter Alt+X, in the dropping submenu you can reach the "Format"-item by entering Alt+F. In WPF, if you Enter Alt+X, followed by Alt+F, the "File"-item of the toplevel-menu is selected.
在WinForms菜单中,如果输入Alt + X,则在删除子菜单中,您可以通过输入Alt + F到达“格式” - 项目。在WPF中,如果输入Alt + X,然后按Alt + F,则选择顶层菜单的“文件” - 项。
Is there a way to force the program to behave like WinForms and use the submenu-shortcut ?
有没有办法强制程序像WinForms一样运行并使用子菜单快捷方式?
1 个解决方案
#1
0
You are supposed to let go of Alt, i do not know of a way to change this behavior (and i for always used access keys that way).
你应该放弃Alt,我不知道改变这种行为的方法(我总是使用这种方式使用访问键)。
#1
0
You are supposed to let go of Alt, i do not know of a way to change this behavior (and i for always used access keys that way).
你应该放弃Alt,我不知道改变这种行为的方法(我总是使用这种方式使用访问键)。