RangeBaseAutomationPeer RangeBaseAutomationPeer RangeBaseAutomationPeer Class

A base class that provides a Microsoft UI Automation peer implementation for types that derive from RangeBase.

Syntax

Declaration

public class RangeBaseAutomationPeerpublic class RangeBaseAutomationPeerPublic Class RangeBaseAutomationPeer

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

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 summary

Initializes a new instance of the RangeBaseAutomationPeer class.

Properties summary

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

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.

Gets the maximum range value that is supported by the control.

Gets the minimum range value that is supported by the control.

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.

Gets the value of the control.

Methods summary

Sets the value of the control, as an implementation of the IValueProvider pattern.

Constructors

  • RangeBaseAutomationPeer(Windows.UI.Xaml.Controls.Primitives.RangeBase)
    RangeBaseAutomationPeer(Windows.UI.Xaml.Controls.Primitives.RangeBase)
    RangeBaseAutomationPeer(Windows.UI.Xaml.Controls.Primitives.RangeBase)
    RangeBaseAutomationPeer(Windows.UI.Xaml.Controls.Primitives.RangeBase)

    Initializes a new instance of the RangeBaseAutomationPeer class.

    public RangeBaseAutomationPeer(Windows.UI.Xaml.Controls.Primitives.RangeBase)public RangeBaseAutomationPeer(Windows.UI.Xaml.Controls.Primitives.RangeBase)Public Function RangeBaseAutomationPeer(Windows.UI.Xaml.Controls.Primitives.RangeBase) As

    Parameters

Properties

  • IsReadOnly
    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

    Property Value

    • 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

    Property Value

    • 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

    Property Value

    • 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

    Property Value

    • 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

    Property Value

    • double
      double
      double

      The small-change value supported by the control.

  • Value
    Value
    Value
    Value

    Gets the value of the control.

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

    Property Value

    • double
      double
      double

      The value of the control.

Methods

  • SetValue(System.Double)
    SetValue(System.Double)
    SetValue(System.Double)
    SetValue(System.Double)

    Sets the value of the control, as an implementation of the IValueProvider pattern.

    public void SetValue(System.Double)public void SetValue(System.Double)Public Function SetValue(System.Double) As void

    Parameters

    • value
      System.Double
      System.Double
      System.Double

      The value to set.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Automation.Peers.dll