Method Register
Register(string, ExecuteDelegate, CanExecuteDelegate?)
Registers command with the specified name and implementation.
public virtual ICommand Register(string name, Command.ExecuteDelegate execute, Command.CanExecuteDelegate? canExecute = null)
Parameters
namestringCommand name.
executeCommand.ExecuteDelegateAction to execute.
canExecuteCommand.CanExecuteDelegateFunction to get whether command can be executed.
Returns
Register(string, Action)
Registers command with the specified name and implementation.
public virtual ICommand Register(string name, Action execute)
Parameters
Returns
Register(string, ICommand?)
Registers command with the specified name and implementation.
public virtual void Register(string name, ICommand? command)