AutomationPeer.IsEnabledCore AutomationPeer.IsEnabledCore AutomationPeer.IsEnabledCore AutomationPeer.IsEnabledCore Method

Definition

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

protected : virtual Platform::Boolean IsEnabledCore()
virtual bool IsEnabledCore() const;
protected virtual bool IsEnabledCore()
Protected Overridable Function IsEnabledCore() As bool

Returns

bool 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.

See also