DelegateCommandBase Methods

Include Protected Members
Include Inherited Members

The DelegateCommandBase type exposes the following members.

Methods

  Name Description
Protected method CanExecute
Determines if the command can execute with the provided parameter by invoing the Func<T, TResult> supplied during construction.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Execute
Executes the command with the provided parameter by invoking the Action<T> supplied during construction.
Protected method 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.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method OnCanExecuteChanged
Raises CanExecuteChanged on the UI thread so every command invoker can requery CanExecute(Object) to check if the CompositeCommand can execute.
Protected method OnIsActiveChanged
This raises the IsActiveChanged event.
Public method RaiseCanExecuteChanged
Raises CanExecuteChanged on the UI thread so every command invoker can requery to check if the command can execute.

Remarks

Note that this will trigger the execution of CanExecute(Object) once for each invoker.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICommand.CanExecute
Explicit interface implemetationPrivate method ICommand.Execute

See Also

DelegateCommandBase Class

Microsoft.Practices.Prism.Commands Namespace