-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Automation.Peers.SliderAutomationPeer |
winrt class |
Exposes Slider types to Microsoft UI Automation.
The Windows Runtime Slider class creates a new SliderAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from SliderAutomationPeer if you are deriving a custom class from Slider 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.
SliderAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern defers to base peers. GetPattern returns a pattern for IRangeValueProvider though the base RangeBaseAutomationPeer.
- GetClassName returns "Slider".
- GetAutomationControlType returns AutomationControlType.Slider.
- GetClickablePoint returns a "not a number" Point value that indicates that there isn't just one such point; clicking at various points along the range has different results.
- GetOrientation reports a value that parallels the Orientation of the Slider owner. 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.
Slider, RangeBaseAutomationPeer, IRangeValueProvider, Custom automation peers