Constructor KeyBinding
KeyBinding(Command[], object?)
Initializes a new instance.
public KeyBinding(Command[] commands, object? data = null)
Parameters
commandsCommand[]The commands this key binding will invoke.
dataobjectArbitrary context that can be associated with this key binding.
KeyBinding(Command[], View?, object?)
Initializes a new instance.
public KeyBinding(Command[] commands, View? target, object? data = null)
Parameters
commandsCommand[]The commands this key binding will invoke.
targetViewFor Application-level HotKey Bindings; the view the key binding is bound to.
dataobjectArbitrary data that can be associated with this key binding.
KeyBinding(Command[], Key, View?, View?, object?)
Initializes a new instance.
public KeyBinding(Command[] commands, Key newKey, View? source = null, View? target = null, object? data = null)
Parameters
commandsCommand[]The commands this key binding will invoke.
newKeyKeyThe key this binding is associated with.
sourceViewThe view where this key binding was created.
targetViewFor Application-level HotKey Bindings; the view the key binding is bound to.
dataobjectArbitrary data that can be associated with this key binding.
- See Also