Метод | Описание | |
---|---|---|
CanExecute ( object parameter ) : bool |
Defines the method that determines whether the command can execute in its current state.
|
|
RelayCommand ( Action |
Initializes a new instance of the RelayCommand class.
|
Метод | Описание | |
---|---|---|
OnExecute ( object parameter ) : void |
Executes the 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. |
Результат | bool |
protected OnExecute ( object parameter ) : void | ||
parameter | object | The parameter. |
Результат | void |
public RelayCommand ( Action |
||
execute | Action |
The execute. |
canExecute | bool>.Func | The can execute. |
Результат | System |