Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.37 KB

automationpeer_isenabledcore_1703249466.md

File metadata and controls

25 lines (17 loc) · 1.37 KB
-api-id -api-type
M:Windows.UI.Xaml.Automation.Peers.AutomationPeer.IsEnabledCore
winrt method

Windows.UI.Xaml.Automation.Peers.AutomationPeer.IsEnabledCore

-description

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

-returns

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.

-examples

-see-also

FrameworkElementAutomationPeer, Custom automation peers, Accessibility