Back to Devexpress

ContextItem.Enabled Property

windowsforms-devexpress-dot-utils-dot-contextitem-cf4c337a.md

latest1.6 KB
Original Source

ContextItem.Enabled Property

Gets or sets whether the current item can respond to end-user interaction.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool Enabled { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Property Enabled As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the current item can respond to end-user interaction; otherwise, false.

|

Remarks

By default, the item is enabled and an end-user can interact with it: click, change state, etc. The item responds to end-user interaction by changing its visual representation and raising the corresponding events. Set the Enabled property to false to disable the current item and prevent it from interaction with an end-user. When the item is disabled, it is displayed in a light hue.

See Also

ContextItem Class

ContextItem Members

DevExpress.Utils Namespace