Méthode | Description | |
---|---|---|
CanExecute ( parameter ) : bool |
Determines if the command can execute by invoked the Func{T,Bool} provided during construction.
|
|
DelegateCommand ( Action executeMethod ) : System |
Initializes a new instance of the DelegateCommand{T} class. CanExecute will always return true. |
|
DelegateCommand ( Action executeMethod, Func canExecuteMethod ) : System |
Initializes a new instance of the DelegateCommand{T} class.
|
|
ExecuteAsync ( parameter ) : Task |
Executes the command and invokes the Action{T} provided during construction.
|
|
FromAsyncHandler ( Func executeMethod ) : DelegateCommand |
Factory method to create a new instance of DelegateCommand{T} from an awaitable handler method.
|
|
FromAsyncHandler ( Func executeMethod, Func canExecuteMethod ) : DelegateCommand |
Factory method to create a new instance of DelegateCommand{T} from an awaitable handler method.
|
Méthode | Description | |
---|---|---|
DelegateCommand ( Func executeMethod ) : System | ||
DelegateCommand ( Func executeMethod, Func canExecuteMethod ) : System |
public CanExecute ( parameter ) : bool | ||
parameter | Data used by the command to determine if it can execute. | |
Résultat | bool |
public DelegateCommand ( Action executeMethod ) : System | ||
executeMethod | Action | Delegate to execute when Execute is called on the command. This can be null to just hook up a CanExecute delegate. |
Résultat | System |
public DelegateCommand ( Action executeMethod, Func canExecuteMethod ) : System | ||
executeMethod | Action | Delegate to execute when Execute is called on the command. This can be null to just hook up a CanExecute delegate. |
canExecuteMethod | Func | Delegate to execute when CanExecute is called on the command. This can be null. |
Résultat | System |
public ExecuteAsync ( parameter ) : Task | ||
parameter | Data used by the command. | |
Résultat | Task |
public static FromAsyncHandler ( Func executeMethod ) : DelegateCommand |
||
executeMethod | Func | Delegate to execute when Execute is called on the command. |
Résultat | DelegateCommand |
public static FromAsyncHandler ( Func executeMethod, Func canExecuteMethod ) : DelegateCommand |
||
executeMethod | Func | Delegate to execute when Execute is called on the command. This can be null to just hook up a CanExecute delegate. |
canExecuteMethod | Func | Delegate to execute when CanExecute is called on the command. This can be null. |
Résultat | DelegateCommand |