Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.24 KB

automationpeer_iscontentelementcore_1434359348.md

File metadata and controls

24 lines (17 loc) · 1.24 KB
-api-id -api-type
M:Microsoft.UI.Xaml.Automation.Peers.AutomationPeer.IsContentElementCore
winrt method

Microsoft.UI.Xaml.Automation.Peers.AutomationPeer.IsContentElementCore

-description

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

-returns

true if the element is a content element; 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 ItemAutomationPeer defers to its container. 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