Open sandboxFocus

Constructor DelegateCommand

DelegateCommand(Action<object?>, Func<object?, bool>?)

Initializes a new instance of the DelegateCommand class, without INotifyPropertyChanged integration.

Declaration
public DelegateCommand(Action<object?> execute, Func<object?, bool>? canExecute)
Parameters
Type Name Description
Action<object> execute
Func<object, bool> canExecute

DelegateCommand(Action<object?>, Func<object?, bool>, INotifyPropertyChanged, string)

Initializes a new instance of the DelegateCommand class, with INotifyPropertyChanged integration.

Declaration
public DelegateCommand(Action<object?> execute, Func<object?, bool> canExecute, INotifyPropertyChanged canExecutePropertyChangeNotifier, string canExecutePropertyName)
Parameters
Type Name Description
Action<object> execute
Func<object, bool> canExecute
INotifyPropertyChanged canExecutePropertyChangeNotifier
string canExecutePropertyName