Метод | Описание | |
---|---|---|
CompositeCommand ( ) : System |
Initializes a new instance of the Command{TCanExecuteParameter,TExecuteParameter} class.
|
|
GetActions ( ) : IEnumerable |
Gets the actions currently registered to this composite command.
|
|
GetActionsWithParameter ( ) : IEnumerable |
Gets the actions with parameters currently registered to this composite command.
|
|
GetCommands ( ) : IEnumerable |
Gets the commands currently registered to this composite command.
|
|
RegisterAction ( System.Action action ) : void |
Registers the specified action.
|
|
RegisterAction ( Action |
Registers the specified action.
|
|
RegisterCommand ( ICommand command, IViewModel viewModel = null ) : void |
Registers the specified command. Note that if the view model is not specified, the command must be unregistered manually in order to prevent memory leaks. |
|
UnregisterAction ( System.Action action ) : void |
Unregisters the specified action.
|
|
UnregisterAction ( Action |
Unregisters the specified action.
|
|
UnregisterCommand ( ICommand command ) : void |
Unregisters the specified command.
|
Метод | Описание | |
---|---|---|
CanExecuteCompositeCommand ( object parameter ) : bool | ||
ExecuteCompositeCommand ( object parameter ) : void | ||
OnCommandCanExecuteChanged ( object sender, |
public GetActionsWithParameter ( ) : IEnumerable |
||
Результат | IEnumerable |
public RegisterAction ( System.Action action ) : void | ||
action | System.Action | The action. |
Результат | void |
public RegisterAction ( Action | ||
action | Action | The action. |
Результат | void |
public RegisterCommand ( ICommand command, IViewModel viewModel = null ) : void | ||
command | ICommand | The command. |
viewModel | IViewModel | The view model. If specified, the command will automatically be unregistered when the view model is closed. |
Результат | void |
public UnregisterAction ( System.Action action ) : void | ||
action | System.Action | The action. |
Результат | void |
public UnregisterAction ( Action | ||
action | Action | The action. |
Результат | void |
public UnregisterCommand ( ICommand command ) : void | ||
command | ICommand | The command. |
Результат | void |