Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.29 KB

automationpeer_iscontrolelementcore_241886730.md

File metadata and controls

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

Windows.UI.Xaml.Automation.Peers.AutomationPeer.IsControlElementCore

-description

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

-returns

true if the element is a control; otherwise, false.

-remarks

The standard implementation at the AutomationPeer level returns false. However, FrameworkElementAutomationPeer adds behavior that changes the default to true. Other specific peers also may affect this behavior; for example many peers return different values depending on whether the owner is created from a control template. Test the existing return value in the peer that you are using or overriding and then override that behavior if necessary.

-examples

-see-also

FrameworkElementAutomationPeer, Custom automation peers, Accessibility