Skip to main content

ICommandUIState.Enabled Property

Gets or sets whether the command is enabled.

Namespace: DevExpress.Utils.Commands

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


bool Enabled { get; set; }

Property Value

Type Description

true to enable the command; otherwise, false.


The Enabled property value is used by the Command.CanExecute method to decide whether the command can be executed. User interface elements supporting commands handle the Enabled property by changing their state accordingly.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Enabled property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also