DelegateCommand(ActionObject, PredicateObject, INotifyPropertyChanged, IEnumerableString) Constructor

Initializes a new instance of the DelegateCommand class for a specific object .

Definition

Namespace: Common.Wpf.Commands
Assembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
C#
public DelegateCommand(
	Action<Object?> execute,
	Predicate<Object?>? canExecute,
	INotifyPropertyChanged? listenObject,
	IEnumerable<string>? listenProperties = null
)

Parameters

execute  ActionObject
Method that has a single parameter and does not return a value.
canExecute  PredicateObject
Method that defines a set of criteria and determines whether the specified object meets those criteria.
If is passed the CanExecute method will always return true.
listenObject  INotifyPropertyChanged
The object to listen for.
listenProperties  IEnumerableString  (Optional)
The properties to listen for. for all properties.

See Also