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
Inheritance
Attributes
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

Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)

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.

RangeBaseAutomationPeer derived classes

RangeBaseAutomationPeer is the parent class for these classes:

Constructors

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

The owner element to create for.

Attributes

Properties

IsReadOnly IsReadOnly IsReadOnly

Gets a value that indicates whether the value of a control is read-only.

public bool IsReadOnly { get; }public bool IsReadOnly { get; }Public ReadOnly Property IsReadOnly As bool
Value
bool bool bool

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

Attributes

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

The large-change value supported by the control.

Attributes

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

The maximum range value supported by the control.

Attributes

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

The minimum range value supported by the control.

Attributes

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

The small-change value supported by the control.

Attributes

Value Value Value

Gets the value of the control.

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

The value of the control.

Attributes

Methods

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

The value to set.

Attributes

See Also