Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 3.36 KB

comboboxitemautomationpeer.md

File metadata and controls

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

Microsoft.UI.Xaml.Automation.Peers.ComboBoxItemAutomationPeer

-description

Exposes the ComboBoxItem contents in a ComboBox to Microsoft UI Automation.

-remarks

The Windows Runtime ComboBoxItem class creates a new ComboBoxItemAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from ComboBoxItemAutomationPeer if you are deriving a custom class from ComboBoxItem 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 ComboBoxItemAutomationPeer

ComboBoxItemAutomationPeer 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, ComboBoxItem, ComboBoxAutomationPeer, Custom automation peers