Delegate |
The DelegateCommandT type exposes the following members.
Name | Description | |
---|---|---|
DelegateCommandT | Initializes a new instance of the DelegateCommandT class. No callback is initially set, so they must be set via the property setters. This usage generates easy readable code even if the delegates are inlined. | |
DelegateCommandT(ActionT) | Initializes a new instance of the DelegateCommandT class with the execute callback. This version generates more compact code; not recommended for in-line delegates. | |
DelegateCommandT(PredicateT, ActionT) | Initializes a new instance of the DelegateCommandT class. |
Name | Description | |
---|---|---|
CanExecuteCallback | Gets or sets the predicate to handle the ICommand.CanExecute method. If unset, ICommand.CanExecute will always return true if ExecuteCallback is set. | |
ExecuteCallback | Gets or sets the action to handle the ICommand.Execute method. If unset, ICommand.CanExecute will always return false. |
Name | Description | |
---|---|---|
CanExecute | Defines the method that determines whether the command can execute in its current state. | |
Execute | Defines the method to be called when the command is invoked. |
Name | Description | |
---|---|---|
CanExecuteChanged | Occurs when changes occur that affect whether or not the command should execute. |
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions) |