Méthode | Description | |
---|---|---|
CanExecute ( object parameter ) : bool |
Defines the method that determines whether the command can execute in its current state.
|
|
Execute ( object parameter ) : void |
Defines the method to be called when the command is invoked.
|
|
VsRelayCommand ( Action |
Initializes a new instance of DelegateCommand{T}. CanExecute will always return true. |
|
VsRelayCommand ( Action |
Creates a new command.
|
public CanExecute ( object parameter ) : bool | ||
parameter | object | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Résultat | bool |
public Execute ( object parameter ) : void | ||
parameter | object | Data used by the command. If the command does not require data to be passed, this object can be set to |
Résultat | void |
public VsRelayCommand ( Action |
||
execute | 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 VsRelayCommand ( Action |
||
execute | Action |
The execution logic. |
canExecute | Predicate |
The execution status logic. |
Résultat | System |