Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 3.82 KB

selectorautomationpeer.md

File metadata and controls

45 lines (29 loc) · 3.82 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Peers.SelectorAutomationPeer
winrt class

Windows.UI.Xaml.Automation.Peers.SelectorAutomationPeer

-description

A base class that provides a Microsoft UI Automation peer implementation for types that derive from Selector.

-remarks

The Windows Runtime Selector class creates a new SelectorAutomationPeer as part of internal logic that checks for listeners of certain automation events. Selector doesn't have an OnCreateAutomationPeer that automatically hooks up the peer on creation, because Selector is usually a base class.

Selector has several derived classes such as ListBox, which have template support and practical implementations of some important functionality. Make sure that you really want to derive from the base class. If you're sure you want to derive from Selector, directly, derive your automation peer from SelectorAutomationPeer and override OnCreateAutomationPeer so that it returns your custom peer.

Default peer implementation and overrides in SelectorAutomationPeer

SelectorAutomationPeer 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.

SelectorAutomationPeer derived classes

SelectorAutomationPeer is the parent class for these classes:

-examples

-see-also

Selector, ItemsControlAutomationPeer, IItemContainerProvider, ISelectionProvider, Custom automation peers