Export (0) Print
Expand All

UIElement.IsEnabledCore Property

Gets a value that becomes the return value of IsEnabled in derived classes.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

protected virtual bool IsEnabledCore { get; }
/** @property */
protected boolean get_IsEnabledCore ()

protected function get IsEnabledCore () : boolean

You cannot use this property in XAML.

Property Value

true if the element is enabled; otherwise, false.

Notes to Inheritors: The default implementation of this property caches the value and also calculates whether the parent element of this element is enabled. (If the parent is not enabled, the child element cannot be effectively enabled in practical user interface (UI).) If you choose to override this implementation, make certain that you call the base implementation to preserve this behavior. The ScrollBar class provides an existing override implementation of this property. This override determines whether the content inside the content presentation area exceeds the available area. If the content does exceed the area, the scrollbar portion is enabled. Otherwise, the scrollbar is not enabled.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft