Class Command
Allows an application author to define a method to be invoked.
public class Command : BaseObject, IBaseObject, ICommand
- Inheritance
-
Command
- Implements
- Derived
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
.
Properties
- CanExecuteFunc
Gets or sets 'CanExecute' function.
- CanExecuteOverride
Gets or sets override for 'CanExecute'. If this property is not Null, it is used inside CanExecute(object?) method.
- CurrentTarget
Gets current target for the currently executed command.
- ExecuteAction
Gets or sets execute action.
Methods
- CanExecute(object?)
Returns whether the command can be executed.
- Execute(object?)
Defines the method that should be called when the command is executed.
- RaiseCanExecuteChanged()
Raises the CanExecuteChanged event.
Events
- AfterExecute
Occurs after Execute(object?) method is called.
- BeforeExecute
Occurs before Execute(object?) method is called.
- CanExecuteChanged
Raised when the ability of the command to execute has changed.