RelayCommand Constructor
Initializes a new instance of the RelayCommand class.
Namespace: Common.Wpf.CommandsAssembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
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.