Метод | Описание | |
---|---|---|
CommandManager ( ) : System |
Initializes a new instance of the CommandManager class.
|
|
CreateCommand ( string commandName, Catel.Windows.Input.InputGesture inputGesture = null, ICompositeCommand compositeCommand = null, bool throwExceptionWhenCommandIsAlreadyCreated = true ) : void |
Creates the command inside the command manager.
|
|
CreateCommand ( string commandName, ICompositeCommand compositeCommand = null, bool throwExceptionWhenCommandIsAlreadyCreated = true ) : void |
Creates the command inside the command manager.
|
|
ExecuteCommand ( string commandName ) : void |
Executes the command.
|
|
GetCommand ( string commandName ) : ICommand |
Gets the command created with the command name.
|
|
GetCommands ( ) : IEnumerable |
Gets all the registered commands.
|
|
GetInputGesture ( string commandName ) : Catel.Windows.Input.InputGesture |
Gets the input gesture for the specified command.
|
|
GetOriginalInputGesture ( string commandName ) : Catel.Windows.Input.InputGesture |
Gets the original input gesture with which the command was initially created.
|
|
InvalidateCommands ( ) : void |
Invalidates the all the currently registered commands.
|
|
IsCommandCreated ( string commandName ) : bool |
Determines whether the specified command name is created.
|
|
RegisterAction ( string commandName, System.Action action ) : void |
Registers the action with the specified command name.
|
|
RegisterAction ( string commandName, Action |
Registers the action with the specified command name.
|
|
RegisterCommand ( string commandName, ICommand command, IViewModel viewModel = null ) : void |
Registers a command with the specified command name.
|
|
ResetInputGestures ( ) : void |
Resets the input gestures to the original input gestures with which the commands were registered.
|
|
SubscribeToKeyboardEvents ( ) : void |
Subscribes to keyboard events.
|
|
SubscribeToKeyboardEvents ( |
Subscribes to keyboard events.
|
|
UnregisterAction ( string commandName, System.Action action ) : void |
Unregisters the action with the specified command name.
|
|
UnregisterAction ( string commandName, Action |
Unregisters the action with the specified command name.
|
|
UnregisterCommand ( string commandName, ICommand command ) : void |
Unregisters a command with the specified command name.
|
|
UpdateInputGesture ( string commandName, Catel.Windows.Input.InputGesture inputGesture = null ) : void |
Updates the input gesture for the specified command.
|
Метод | Описание | |
---|---|---|
OnWindowLoaded ( object sender, |
public CreateCommand ( string commandName, Catel.Windows.Input.InputGesture inputGesture = null, ICompositeCommand compositeCommand = null, bool throwExceptionWhenCommandIsAlreadyCreated = true ) : void | ||
commandName | string | Name of the command. |
inputGesture | Catel.Windows.Input.InputGesture | The input gesture. |
compositeCommand | ICompositeCommand | The composite command. If |
throwExceptionWhenCommandIsAlreadyCreated | bool | if set to |
Результат | void |
public CreateCommand ( string commandName, ICompositeCommand compositeCommand = null, bool throwExceptionWhenCommandIsAlreadyCreated = true ) : void | ||
commandName | string | Name of the command. |
compositeCommand | ICompositeCommand | The composite command. If |
throwExceptionWhenCommandIsAlreadyCreated | bool | if set to |
Результат | void |
public ExecuteCommand ( string commandName ) : void | ||
commandName | string | Name of the command. |
Результат | void |
public GetCommand ( string commandName ) : ICommand | ||
commandName | string | Name of the command. |
Результат | ICommand |
public GetInputGesture ( string commandName ) : Catel.Windows.Input.InputGesture | ||
commandName | string | Name of the command. |
Результат | Catel.Windows.Input.InputGesture |
public GetOriginalInputGesture ( string commandName ) : Catel.Windows.Input.InputGesture | ||
commandName | string | Name of the command. |
Результат | Catel.Windows.Input.InputGesture |
public IsCommandCreated ( string commandName ) : bool | ||
commandName | string | Name of the command. |
Результат | bool |
public RegisterAction ( string commandName, System.Action action ) : void | ||
commandName | string | Name of the command. |
action | System.Action | The action. |
Результат | void |
public RegisterAction ( string commandName, Action | ||
commandName | string | Name of the command. |
action | Action | The action. |
Результат | void |
public RegisterCommand ( string commandName, ICommand command, IViewModel viewModel = null ) : void | ||
commandName | string | Name of the command. |
command | ICommand | The command. |
viewModel | IViewModel | The view model. |
Результат | void |
public SubscribeToKeyboardEvents ( ) : void | ||
Результат | void |
public SubscribeToKeyboardEvents ( |
||
view | The view. | |
Результат | void |
public UnregisterAction ( string commandName, System.Action action ) : void | ||
commandName | string | Name of the command. |
action | System.Action | The action. |
Результат | void |
public UnregisterAction ( string commandName, Action | ||
commandName | string | Name of the command. |
action | Action | The action. |
Результат | void |
public UnregisterCommand ( string commandName, ICommand command ) : void | ||
commandName | string | Name of the command. |
command | ICommand | The command. |
Результат | void |
public UpdateInputGesture ( string commandName, Catel.Windows.Input.InputGesture inputGesture = null ) : void | ||
commandName | string | Name of the command. |
inputGesture | Catel.Windows.Input.InputGesture | The new input gesture. |
Результат | void |