RelayCommand Constructor

Initializes a new instance of the RelayCommand class.

Definition

Namespace: Common.Wpf.Commands
Assembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
C#
public RelayCommand(
	Predicate<Object?> canExecute,
	Action<Object?> execute
)

Parameters

canExecute  PredicateObject
Method that has a single parameter and does not return a value.
execute  ActionObject
Method that defines a set of criteria and determines whether the specified object meets those criteria.

See Also