DelegateCommand(Action<T>, Func<T, Boolean>, Nullable<Boolean>) Constructor
In This Article
Initializes a new instance of the DelegateCommand<T> that can always be executed.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v24.2.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
#Declaration
public DelegateCommand(
Action<T> executeMethod,
Func<T, bool> canExecuteMethod,
bool? useCommandManager = null
)
#Parameters
Name | Type | Description |
---|---|---|
execute |
Action<T> | The execution logic. |
can |
Func<T, Boolean> | The execution status logic. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
use |
Nullable<Boolean> | null | Specifies whether the command is automatically updated by the command manager. |
#Remarks
To learn more, see Delegate Commands.
See Also