DelegateCommand Members
Include Protected Members
Include Inherited Members
The DelegateCommand type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DelegateCommand(Action) |
Creates a new instance of DelegateCommand with the Action to invoke on execution.
|
|
DelegateCommand(Action, Func<Boolean>) |
Creates a new instance of DelegateCommand with the Action to invoke on execution and a Func to query for determining if the command can execute.
|
Methods
Name | Description | |
---|---|---|
CanExecute() |
Determines if the command can be executed.
|
|
CanExecute(Object) |
Determines if the command can execute with the provided parameter by invoing the Func<T, TResult> supplied during construction.
(Inherited from DelegateCommandBase.) |
|
Equals | (Inherited from Object.) | |
Execute() |
Executes the command.
|
|
Execute(Object) |
Executes the command with the provided parameter by invoking the Action<T> supplied during construction.
(Inherited from DelegateCommandBase.) |
|
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
OnCanExecuteChanged |
Raises CanExecuteChanged on the UI thread so every command invoker can requery CanExecute(Object) to check if the CompositeCommand can execute.
(Inherited from DelegateCommandBase.) |
|
OnIsActiveChanged |
This raises the IsActiveChanged event.
(Inherited from DelegateCommandBase.) |
|
RaiseCanExecuteChanged |
Raises CanExecuteChanged on the UI thread so every command invoker can requery to check if the command can execute.
(Inherited from DelegateCommandBase.)RemarksNote that this will trigger the execution of CanExecute(Object) once for each invoker. |
|
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
IsActive |
Gets or sets a value indicating whether the object is active.
(Inherited from DelegateCommandBase.) |
Events
Name | Description | |
---|---|---|
CanExecuteChanged |
Occurs when changes occur that affect whether or not the command should execute.
(Inherited from DelegateCommandBase.) |
|
IsActiveChanged |
Fired if the IsActive property changes.
(Inherited from DelegateCommandBase.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICommand.CanExecute | (Inherited from DelegateCommandBase.) | |
ICommand.Execute | (Inherited from DelegateCommandBase.) |