DelegateCommand Class

Command to relay functionality to other objects by invoking delegates.

Definition

Namespace: Common.Wpf.Commands
Assembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
C#
public class DelegateCommand : INotifyPropertyChanged, 
	ICommand, IDisposable
Inheritance
Object    DelegateCommand
Implements
INotifyPropertyChanged, IDisposable, ICommand

Constructors

DelegateCommand(ActionObject)Initializes a new instance of the DelegateCommand class.
DelegateCommand(ActionObject, PredicateObject)Initializes a new instance of the DelegateCommand class using an Action and Predicate.
DelegateCommand(ActionObject, PredicateObject, INotifyPropertyChanged, IEnumerableString)Initializes a new instance of the DelegateCommand class for a specific object .

Properties

SubscriberCountGets the count of subscribers.

Methods

CanExecuteDefines the method that determines whether the command can execute in its current state.
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Dispose(Boolean)Releases unmanaged and - optionally - managed resources.
ExecuteDefines the method to be called when the command is invoked.
OnPropertyChangedInvoked whenever the effective value has been updated.

Events

CanExecuteChangedOccurs when changes occur that affect whether or not the command should execute.
PropertyChangedMethod that will handle the PropertyChanged event raised when a property is changed on a component.

See Also