Class CommandBase
public abstract class CommandBase : ICommand
- Inheritance
-
CommandBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Methods
CanExecute(object)
Defines the method that determines whether the command can execute in its current state.
public virtual bool CanExecute(object parameter)
Parameters
parameter
objectData used by the command. If the command does not require data to be passed, this object can be set to null.
Returns
Execute(object)
Defines the method to be called when the command is invoked.
public abstract void Execute(object parameter)
Parameters
parameter
objectData used by the command. If the command does not require data to be passed, this object can be set to null.
Events
CanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
public event EventHandler CanExecuteChanged