Property | Type | Description | |
---|---|---|---|
_canExecuteMethod | bool>.Func | ||
_executeMethod | Task>.Func |
Method | Description | |
---|---|---|
CanExecute ( object parameter ) : bool |
Determines if the command can execute with the provided parameter by invoking the Func{Object,Bool} supplied during construction.
|
|
DelegateCommandBase ( Action |
Creates a new instance of a DelegateCommandBase, specifying both the execute action and the can execute function.
|
|
DelegateCommandBase ( Task>.Func |
Creates a new instance of a DelegateCommandBase, specifying both the Execute action as an awaitable Task and the CanExecute function.
|
|
Execute ( object parameter ) : System.Threading.Tasks.Task |
Executes the command with the provided parameter by invoking the Action{Object} supplied during construction.
|
|
OnCanExecuteChanged ( ) : void |
Raises ICommand.CanExecuteChanged on the UI thread so every command invoker can requery ICommand.CanExecute.
|
Method | Description | |
---|---|---|
ICommand ( object parameter ) : bool | ||
ICommand ( object parameter ) : void | ||
RaiseCanExecuteChanged ( ) : void |
protected CanExecute ( object parameter ) : bool | ||
parameter | object | The parameter to use when determining if this command can execute. |
return | bool |
protected DelegateCommandBase ( Action |
||
executeMethod | Action |
The |
canExecuteMethod | bool>.Func | The |
return | System |
protected DelegateCommandBase ( Task>.Func |
||
executeMethod | Task>.Func | The |
canExecuteMethod | bool>.Func | The |
return | System |
protected Execute ( object parameter ) : System.Threading.Tasks.Task | ||
parameter | object | |
return | System.Threading.Tasks.Task |