RangeBaseAutomationPeer class
TOC
Collapse the table of content
Expand the table of content

RangeBaseAutomationPeer class

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

Inheritance

Object
  DependencyObject
    AutomationPeer
      FrameworkElementAutomationPeer
        RangeBaseAutomationPeer

Syntax


Public Class RangeBaseAutomationPeer
    Inherits FrameworkElementAutomationPeer
    Implements IRangeValueProvider

Members

The RangeBaseAutomationPeer class has these types of members:

Constructors

The RangeBaseAutomationPeer class has these constructors.

ConstructorDescription
RangeBaseAutomationPeer Initializes a new instance of the RangeBaseAutomationPeer class.

 

Methods

The RangeBaseAutomationPeer class has these methods. It also inherits methods from the Object class.

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

 

Properties

The RangeBaseAutomationPeer class has these properties.

PropertyAccess typeDescription

IsReadOnly

Read-only

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

LargeChange

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.

Maximum

Read-only

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

Minimum

Read-only

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

SmallChange

Read-only

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.

Value

Read-only

Gets the value of the control.

 

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 UI Automation client.

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:

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
RangeBase
FrameworkElementAutomationPeer
IRangeValueProvider
Custom automation peers

 

 

Show:
© 2016 Microsoft