DelegateCommand(ActionObject, PredicateObject) Constructor
Initializes a new instance of the DelegateCommand class using an Action and Predicate.
Namespace: Common.Wpf.CommandsAssembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
public DelegateCommand(
Action<Object?> execute,
Predicate<Object?>? canExecute
)
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.