快捷键
最后更新于
这有帮助吗?
最后更新于
这有帮助吗?
Various Controls that implement ICommandSource
have a HotKey
property that you can set or bind to. Pressing the hotkey will execute the command to the Control.
You can also use the static methods of the HotKeyManager
class to set and get hotkeys from code:
See the section for more information on finding named Controls with the FindControl method.
A Hotkey must have one and zero or more . When setting a Hotkey in XAML using the HotKey
property, the string will be parsed as a . is used to parse the key and modifiers but synonyms like Ctrl
instead of Control
or Win
instead of Meta
can be used.