-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Automation.Peers.ScrollViewerAutomationPeer |
winrt class |
Exposes ScrollViewer types to Microsoft UI Automation.
The Windows Runtime ScrollViewer class creates a new ScrollViewerAutomationPeer as its OnCreateAutomationPeer definition. ScrollViewer is sealed, so the normal scenario of deriving from the ScrollViewer class and its existing peer isn't applicable to ScrollViewerAutomationPeer.
ScrollViewerAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern reports that the peer provides pattern support for PatternInterface.Scroll (IScrollProvider).
- GetClassName returns "ScrolViewer".
- GetAutomationControlType returns AutomationControlType.Pane.
- IsControlElement returns a value based on the template parent. If there is a template parent then it returns true, otherwise the value is false. The scenario here is that a templated control may have forwarded to this peer for scrolling support, but normally a ScrollViewer by itself isn't a full-fledged control. This peer fires several automation events on behalf of its owner in response to changes in scrolling or properties that report scrolling info.
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.
ScrollViewer, FrameworkElementAutomationPeer, IScrollProvider, Custom automation peers