我试过:
<KeyBinding Key="S" Modifiers="Control, Shift"/>
和
<KeyBinding Key="S" Modifiers="Control|Shift"/>
但它不起作用。
最佳答案
您可以使用:
<KeyBinding Modifiers="Ctrl+Shift" Key="S" Command="{Whatever}" />
手势也应该起作用:
<KeyBinding Gesture="Ctrl+Shift+S" Command="{Whatever}" />
参见 here了解更多详情。
关于.net - 有没有一种 xamly 方法可以为 KeyBinding 设置多个修饰符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6593351/