Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 3.35 KB

listboxitemautomationpeer.md

File metadata and controls

31 lines (22 loc) · 3.35 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Automation.Peers.ListBoxItemAutomationPeer
winrt class

Microsoft.UI.Xaml.Automation.Peers.ListBoxItemAutomationPeer

-description

Exposes the items in the Items collection of a ListBox to Microsoft UI Automation.

-remarks

The Windows Runtime ListBoxItem class creates a new ListBoxItemAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from ListBoxItemAutomationPeer if you are deriving a custom class from ListBoxItem and want to add automation support for additional features that you enabled in your custom class. Then override OnCreateAutomationPeer so that it returns your custom peer.

Default peer implementation and overrides in ListBoxItemAutomationPeer

ListBoxItemAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

-examples

-see-also

FrameworkElementAutomationPeer, ListBoxItem, ListBox, Custom automation peers