Class Command
Allows an application author to define a method to be invoked.
public class Command : ICommand
- Inheritance
-
Command
- Implements
Constructors
- Command(ExecuteDelegate)
Initializes a new instance of the Command class with the specified
executeDelegate
.
- Command(ExecuteDelegate, CanExecuteDelegate)
Initializes a new instance of the Command class with the specified
executeDelegate
andcanExecuteDelegate
.
Methods
- CanExecute(object?)
Returns whether the command can be executed.
- Execute(object?)
Defines the method that should be executed when the command is executed.
- RaiseCanExecuteChanged()
Raises the CanExecuteChanged event.
Events
- CanExecuteChanged
Raised when the ability of the command to execute has changed.