Range​Base​Automation​Peer Range​Base​Automation​Peer Range​Base​Automation​Peer Class


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
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties



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.


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.

RangeBaseAutomationPeer derived classes

RangeBaseAutomationPeer is the parent class for these classes:


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)
RangeBase RangeBase RangeBase

The owner element to create for.



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
bool bool bool

true if the value is read-only; false if it can be modified.


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
double double double

The large-change value supported by the control.


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
double double double

The maximum range value supported by the control.


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
double double double

The minimum range value supported by the control.


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
double double double

The small-change value supported by the control.


Value Value Value

Gets the value of the control.

public double Value { get; }public double Value { get; }Public ReadOnly Property Value As double
double double double

The value of the control.



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
System.Double System.Double System.Double

The value to set.


See Also