Method InvokeCommand
InvokeCommand(Command, Key, KeyBinding)
Invokes an Application-bound commmand.
public static bool? InvokeCommand(Command command, Key key, KeyBinding binding)
Parameters
command
CommandThe Command to invoke
key
KeyThe Application-bound Key that was pressed.
binding
KeyBindingDescribes the binding.
Returns
- bool?
null if no command was found; input processing should continue. false if the command was invoked and was not handled (or cancelled); input processing should continue. true if the command was invoked the command was handled (or cancelled); input processing should stop.