Version

Enabled Property (UIElement)

Indicates whether this UIElement is enabled or disabled.
Syntax
'Declaration
 
Public Property Enabled As Boolean
public bool Enabled {get; set;}

Property Value

True when the current UIElement is enabled, otherwise False when it has been disabled.
Remarks

Setting the Enabled property on a UIElement that is composed of many child UIElements also cascades down and enables/disables the children for a consistent look-and-feel.

An enabled UIElement generally has a default or non-disabled style applied to it, and if it supports user interactivity then it will do so. Conversely, a disabled UIElement will have a disabled style applied and does not expose user interactivity.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also