Gets or sets the enabled state of the Button.

Namespace:  ESRI.ArcGISExplorer.Application

Assembly:  ESRI.ArcGISExplorer.Application (in ESRI.ArcGISExplorer.Application.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public bool Enabled { get; set; }
Visual Basic (Declaration)
Public Property Enabled As Boolean

Field Value

trueTruetruetrue (True in Visual Basic) if the Button is enabled on the Ribbon; otherwise, falseFalsefalsefalse (False in Visual Basic).

Remarks

The enabled state of a Button can be set programmatically; this is commonly done from within the overridden OnUpdate()()() method of the Button itself.

Although you can set the enabled state of the Button programmatically, an alternative method of enabling and disabling controls is to use application conditions; this often provides sufficient control and is more efficient.

See Also