Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 4.34 KB

comboboxautomationpeer.md

File metadata and controls

44 lines (30 loc) · 4.34 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Peers.ComboBoxAutomationPeer
winrt class

Windows.UI.Xaml.Automation.Peers.ComboBoxAutomationPeer

-description

Exposes ComboBox types to Microsoft UI Automation.

-remarks

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

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

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

IsReadOnly and IsEnabled return a calculated value based on UI properties such as IsEnabled on the owner.

The peer can fire the automation events when ExpandCollapseState of the peer and owner control changes.

-examples

-see-also

ComboBox, SelectorAutomationPeer, IItemContainerProvider, ISelectionProvider, IValueProvider, IExpandCollapseProvider, ItemsControlAutomationPeer, ComboBoxItemAutomationPeer, Custom automation peers