RangeBaseAutomationPeer
RangeBaseAutomationPeer
RangeBaseAutomationPeer
RangeBaseAutomationPeer
Class
Definition
A base class that provides a Microsoft UI Automation peer implementation for types that derive from RangeBase.
public : class RangeBaseAutomationPeer : FrameworkElementAutomationPeer, IRangeBaseAutomationPeer, IRangeValueProviderpublic class RangeBaseAutomationPeer : FrameworkElementAutomationPeer, IRangeBaseAutomationPeer, IRangeValueProviderPublic Class RangeBaseAutomationPeer Inherits FrameworkElementAutomationPeer Implements IRangeBaseAutomationPeer, IRangeValueProvider// This API is not available in Javascript.
- Inheritance
-
FrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerRangeBaseAutomationPeerRangeBaseAutomationPeerRangeBaseAutomationPeerRangeBaseAutomationPeer
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Remarks
The Windows Runtime RangeBase class creates a new RangeBaseAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from RangeBaseAutomationPeer if you are deriving a custom class from RangeBase 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.
Note
Base classes for XAML UI don't typically have an OnCreateAutomationPeer implementation but RangeBase does. However, the peer it creates is missing some information. Therefore you should still follow the pattern of defining a new peer based on RangeBaseAutomationPeer and creating an instance of it in OnCreateAutomationPeer for a custom control that's based on RangeBase.
Default peer implementation and overrides in RangeBaseAutomationPeer
RangeBaseAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern reports pattern support for PatternInterface.RangeValue (IRangeValueProvider ).
- GetClassName and GetAutomationControlType don't have implementations. It's expected that you will implement these. A typical GetAutomationControlTypeCore implementation would return AutomationControlType.ProgressBar, AutomationControlType.ScrollBar or AutomationControlType.Slider. 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.
RangeBaseAutomationPeer derived classes
RangeBaseAutomationPeer is the parent class for these classes:
Constructors
RangeBaseAutomationPeer(RangeBase) RangeBaseAutomationPeer(RangeBase) RangeBaseAutomationPeer(RangeBase) RangeBaseAutomationPeer(RangeBase)
Initializes a new instance of the RangeBaseAutomationPeer class.
public : RangeBaseAutomationPeer(RangeBase owner)public RangeBaseAutomationPeer(RangeBase owner)Public Sub New(owner As RangeBase)// This API is not available in Javascript.
Properties
IsReadOnly IsReadOnly IsReadOnly IsReadOnly
Gets a value that indicates whether the value of a control is read-only.
public : PlatForm::Boolean IsReadOnly { get; }public bool IsReadOnly { get; }Public ReadOnly Property IsReadOnly As bool// This API is not available in Javascript.
- Value
- PlatForm::Boolean bool bool bool
true if the value is read-only; false if it can be modified.
LargeChange LargeChange LargeChange LargeChange
Gets the value that is added to or subtracted from the Value property when a large change is made, such as with the PAGE DOWN key.
public : double LargeChange { get; }public double LargeChange { get; }Public ReadOnly Property LargeChange As double// This API is not available in Javascript.
- Value
- double double double double
The large-change value supported by the control.
Maximum Maximum Maximum Maximum
Gets the maximum range value that is supported by the control.
public : double Maximum { get; }public double Maximum { get; }Public ReadOnly Property Maximum As double// This API is not available in Javascript.
- Value
- double double double double
The maximum range value supported by the control.
Minimum Minimum Minimum Minimum
Gets the minimum range value that is supported by the control.
public : double Minimum { get; }public double Minimum { get; }Public ReadOnly Property Minimum As double// This API is not available in Javascript.
- Value
- double double double double
The minimum range value supported by the control.
SmallChange SmallChange SmallChange SmallChange
Gets the value that is added to or subtracted from the Value property when a small change is made, such as with an arrow key.
public : double SmallChange { get; }public double SmallChange { get; }Public ReadOnly Property SmallChange As double// This API is not available in Javascript.
- Value
- double double double double
The small-change value supported by the control.
Methods
SetValue(Double) SetValue(Double) SetValue(Double) SetValue(Double)
Sets the value of the control, as an implementation of the IValueProvider pattern.
public : void SetValue(double value)public void SetValue(Double value)Public Function SetValue(value As Double) As void// This API is not available in Javascript.
- value
- double Double Double Double
The value to set.