Constructor KeyBinding
KeyBinding(Command[], KeyBindingScope, object?)
Initializes a new instance.
public KeyBinding(Command[] commands, KeyBindingScope scope, object? context = null)
Parameters
commands
Command[]The commands this key binding will invoke.
scope
KeyBindingScopeThe scope of the Commands.
context
objectArbitrary context that can be associated with this key binding.
KeyBinding(Command[], KeyBindingScope, View?, object?)
Initializes a new instance.
public KeyBinding(Command[] commands, KeyBindingScope scope, View? boundView, object? context = null)
Parameters
commands
Command[]The commands this key binding will invoke.
scope
KeyBindingScopeThe scope of the Commands.
boundView
ViewThe view the key binding is bound to.
context
objectArbitrary context that can be associated with this key binding.