Range​Base Range​Base Range​Base Class

Definition

Represents an element that has a value within a specific range, such as the ProgressBar, ScrollBar, and Slider controls.

public : class RangeBase : Control, IRangeBase, IRangeBaseOverridespublic class RangeBase : Control, IRangeBase, IRangeBaseOverridesPublic Class RangeBase Inherits Control Implements IRangeBase, IRangeBaseOverrides
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Remarks

RangeBase derived classes

RangeBase is the parent class for these controls:

Constructors

RangeBase() RangeBase() RangeBase()

Provides base class initialization behavior for RangeBase -derived classes.

protected : RangeBase()protected RangeBase()Protected Sub New()
Attributes

Properties

LargeChange LargeChange LargeChange

Gets or sets a value to be added to or subtracted from the Value of a RangeBase control.

public : double LargeChange { get; set; }public double LargeChange { get; set; }Public ReadWrite Property LargeChange As double
<rangeBase LargeChange="double"/>
Value
double double double

Value to add to or subtract from the Value of the RangeBase element. The default is 1.

Attributes

Remarks

Slider overrides the metadata of this property and sets its default to 10. For more information, see Dependency properties overview.

LargeChangeProperty LargeChangeProperty LargeChangeProperty

Identifies the LargeChange dependency property.

public : static DependencyProperty LargeChangeProperty { get; }public static DependencyProperty LargeChangeProperty { get; }Public Static ReadOnly Property LargeChangeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the LargeChange dependency property.

Attributes

Maximum Maximum Maximum

Gets or sets the highest possible Value of the range element.

public : double Maximum { get; set; }public double Maximum { get; set; }Public ReadWrite Property Maximum As double
<rangeBase Maximum="double"/>
Value
double double double

The highest possible Value of the range element. The default is 1.

Attributes

Remarks

Slider and ProgressBar override the metadata of this property and set its default to 100. For more information, see Dependency properties overview.

Note

When binding Minimum and Maximum values in Extensible Application Markup Language (XAML), declare the Binding for Maximum first. If the Binding for Maximum is declared after Minimum, the bound value for Maximum is ignored and the following situations can occur: + If the bound Minimum value is negative, the Maximum value is set to 0.

These behaviors can also occur if you set the Minimum value without also explicitly setting the Maximum value.

MaximumProperty MaximumProperty MaximumProperty

Identifies the Maximum dependency property.

public : static DependencyProperty MaximumProperty { get; }public static DependencyProperty MaximumProperty { get; }Public Static ReadOnly Property MaximumProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Maximum dependency property.

Attributes

Minimum Minimum Minimum

Gets or sets the Minimum possible Value of the range element.

public : double Minimum { get; set; }public double Minimum { get; set; }Public ReadWrite Property Minimum As double
<rangeBase Minimum="double"/>
Value
double double double

Minimum possible Value of the range element. The default is 0.

Attributes

Remarks

Note

When binding Minimum and Maximum values in Extensible Application Markup Language (XAML), declare the Binding for Maximum first. If the Binding for Maximum is declared after Minimum, the bound value for Maximum is ignored and the following situations can occur: + If the bound Minimum value is negative, the Maximum value is set to 0.

These behaviors can also occur if you set the Minimum value without also explicitly setting the Maximum value.

MinimumProperty MinimumProperty MinimumProperty

Identifies the Minimum dependency property.

public : static DependencyProperty MinimumProperty { get; }public static DependencyProperty MinimumProperty { get; }Public Static ReadOnly Property MinimumProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Minimum dependency property.

Attributes

SmallChange SmallChange SmallChange

Gets or sets a Value to be added to or subtracted from the Value of a RangeBase control.

public : double SmallChange { get; set; }public double SmallChange { get; set; }Public ReadWrite Property SmallChange As double
<rangeBase SmallChange="double"/>
Value
double double double

Value to add to or subtract from the Value of the RangeBase element. The default is 0.1.

Attributes

Remarks

Slider overrides the metadata of this property and sets its default to 1. For more information, see Dependency properties overview.

SmallChangeProperty SmallChangeProperty SmallChangeProperty

Identifies the SmallChange dependency property.

public : static DependencyProperty SmallChangeProperty { get; }public static DependencyProperty SmallChangeProperty { get; }Public Static ReadOnly Property SmallChangeProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the SmallChange dependency property.

Attributes

Value Value Value

Gets or sets the current setting of the range control, which may be coerced.

public : double Value { get; set; }public double Value { get; set; }Public ReadWrite Property Value As double
<rangeBase Value="double"/>
Value
double double double

The current setting of the range control, which may be coerced. The default is 0.

Attributes

ValueProperty ValueProperty ValueProperty

Identifies the Value dependency property.

public : static DependencyProperty ValueProperty { get; }public static DependencyProperty ValueProperty { get; }Public Static ReadOnly Property ValueProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Value dependency property.

Attributes

Methods

OnMaximumChanged(Double, Double) OnMaximumChanged(Double, Double) OnMaximumChanged(Double, Double)

Called when the Maximum property changes.

protected : virtual void OnMaximumChanged(double oldMaximum, double newMaximum)protected virtual void OnMaximumChanged(Double oldMaximum, Double newMaximum)Protected Overridable Function OnMaximumChanged(oldMaximum As Double, newMaximum As Double) As void
Parameters
oldMaximum
double Double Double

Old value of the Maximum property.

newMaximum
double Double Double

New value of the Maximum property.

Attributes

OnMinimumChanged(Double, Double) OnMinimumChanged(Double, Double) OnMinimumChanged(Double, Double)

Called when the Minimum property changes.

protected : virtual void OnMinimumChanged(double oldMinimum, double newMinimum)protected virtual void OnMinimumChanged(Double oldMinimum, Double newMinimum)Protected Overridable Function OnMinimumChanged(oldMinimum As Double, newMinimum As Double) As void
Parameters
oldMinimum
double Double Double

Old value of the Minimum property.

newMinimum
double Double Double

New value of the Minimum property.

Attributes

OnValueChanged(Double, Double) OnValueChanged(Double, Double) OnValueChanged(Double, Double)

Fires the ValueChanged routed event.

protected : virtual void OnValueChanged(double oldValue, double newValue)protected virtual void OnValueChanged(Double oldValue, Double newValue)Protected Overridable Function OnValueChanged(oldValue As Double, newValue As Double) As void
Parameters
oldValue
double Double Double

Old value of the Value property.

newValue
double Double Double

New value of the Value property.

Attributes

Events

ValueChanged ValueChanged ValueChanged

Occurs when the range value changes.

public : event RangeBaseValueChangedEventHandler ValueChangedpublic event RangeBaseValueChangedEventHandler ValueChangedPublic Event ValueChanged
<rangeBase ValueChanged="eventhandler"/>
Attributes

See Also