DelegateCommand(ActionObject, PredicateObject, INotifyPropertyChanged, IEnumerableString) Constructor
Initializes a new instance of the DelegateCommand class for a specific object .
Namespace: Common.Wpf.CommandsAssembly: Common.Wpf.Resources (in Common.Wpf.Resources.dll) Version: 2.0.6
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.