Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AutomationPeer.IsEnabledCore Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides the peer's behavior when a Microsoft UI Automation client calls IsEnabled or an equivalent Microsoft UI Automation client API.

protected:
 virtual bool IsEnabledCore() = IsEnabledCore;
bool IsEnabledCore();
protected virtual bool IsEnabledCore();
function isEnabledCore()
Protected Overridable Function IsEnabledCore () As Boolean

Returns

Boolean

bool

true if the element can be interacted with; otherwise, false.

Remarks

The standard implementation at the AutomationPeer level returns true. However, FrameworkElementAutomationPeer adds behavior that checks whether the owner is a Control and forwards owner information from Control.IsEnabled. For cases where the owner is not a control but does have a peer, such as for a TextBlock, the FrameworkElementAutomationPeer implementation returns true.

Applies to

See also


Feedback

Was this page helpful?