[]
Represents a command that delegates its implementation to a delegate with a parameter of type TParm.
public class DelegateCommand<TParm> : ICommand
Name | Description |
---|---|
TParm | The type of parameter used by the command. |
Name | Description |
---|---|
DelegateCommand(Action<TParm>) | Initializes a new instance of the DelegateCommand<TParm> class. |
DelegateCommand(Action<TParm>, Predicate<TParm>) | Initializes a new instance of the DelegateCommand<TParm> class. |
Name | Description |
---|---|
CanExecute(object) | Defines the method that determines whether the command can execute in its current state. |
Execute(object) | Defines the method to be called when the command is invoked. |
OnCanExecuteChanged(EventArgs) | Raises the CanExecuteChanged event, notifying subscribers that the ability to execute the command has changed. |
RaiseCanExecuteChanged() | Raises the CanExecuteChanged event from external code. |
Name | Description |
---|---|
CanExecuteChanged | Occurs when the ability of the command to execute changes. |