Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 2.47 KB

iselectionprovider.md

File metadata and controls

27 lines (17 loc) · 2.47 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Provider.ISelectionProvider
winrt interface

Windows.UI.Xaml.Automation.Provider.ISelectionProvider

-description

Exposes methods and properties to support access by a Microsoft UI Automation client to controls that act as containers for a collection of individual, selectable child items. The children of this element must implement ISelectionItemProvider. Implement ISelectionProvider in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.SelectionItem.

-remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see Selection Control Pattern. However, you don't need to follow the guidance regarding IRawElementProviderFragmentRoot, that is specific to COM provider implementations and the interface doesn't exist in the Windows Runtime automation provider API.

ISelectionProvider is implemented by the existing Windows Runtime class SelectorAutomationPeer, which is the base class for ComboBoxAutomationPeer and ListBoxAutomationPeer.

Use SelectionPatternIdentifiers if you want to reference the ISelectionProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.

-examples

-see-also

SelectionPatternIdentifiers, Selector, ISelectionProvider (COM interface), Custom automation peers, Selection Control Pattern