Skip to main content
A newer version of this page is available. .

DelegateCommand(Action, Func<Boolean>, Nullable<Boolean>) Constructor

Initializes a new instance of the DelegateCommand that can always be executed.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v18.2.dll

Declaration

public DelegateCommand(
    Action executeMethod,
    Func<bool> canExecuteMethod,
    bool? useCommandManager = default(bool? )
)

Parameters

Name Type Description
executeMethod Action

The execution logic.

canExecuteMethod Func<Boolean>

The execution status logic.

Optional Parameters

Name Type Default Description
useCommandManager Nullable<Boolean> *null*

Specifies whether the command is automatically updated by the command manager.

Remarks

To learn more, see Delegate Commands.

See Also