ICommand Interface
Defines a command.
public interface ICommand
Methods
CanExecute(Object)
Returns whether the command can execute.
bool CanExecute(object parameter)
Parameter | Type | Description |
---|---|---|
parameter | Object | The parameter to examine. |
Returns
- Boolean:
true
if the command can execute; otherwise,false
.
Execute(Object)
Executes the command.
void Execute(object parameter)
Parameter | Type | Description |
---|---|---|
parameter | Object | The parameter to examine. |
Events
CanExecuteChanged
Occurs after the can-execute state has changed.