Skip to main content

ICommandUIState.Enabled Property

Gets or sets whether the command is enabled.

Namespace: DevExpress.Utils.Commands

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

bool Enabled { get; set; }

Property Value

Type Description
Boolean

true to enable the command; otherwise, false.

Remarks

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 snippet (auto-collected from DevExpress Examples) contains a reference to the Enabled property.

Note

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