RangeBase
RangeBase
RangeBase
RangeBase
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// This API is not available in Javascript.
- Inheritance
- Attributes
| 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
Properties
LargeChange 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// This API is not available in Javascript.
<rangeBase LargeChange="double"/>
- Value
- double double double double
Value to add to or subtract from the Value of the RangeBase element. The default is 1.
Remarks
Slider overrides the metadata of this property and sets its default to 10. For more information, see Dependency properties overview.
LargeChangeProperty 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// This API is not available in Javascript.
The identifier for the LargeChange dependency property.
Maximum 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// This API is not available in Javascript.
<rangeBase Maximum="double"/>
- Value
- double double double double
The highest possible Value of the range element. The default is 1.
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 MaximumProperty
Identifies the Maximum dependency property.
public : static DependencyProperty MaximumProperty { get; }public static DependencyProperty MaximumProperty { get; }Public Static ReadOnly Property MaximumProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the Maximum dependency property.
Minimum 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// This API is not available in Javascript.
<rangeBase Minimum="double"/>
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 MinimumProperty
Identifies the Minimum dependency property.
public : static DependencyProperty MinimumProperty { get; }public static DependencyProperty MinimumProperty { get; }Public Static ReadOnly Property MinimumProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the Minimum dependency property.
SmallChange 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// This API is not available in Javascript.
<rangeBase SmallChange="double"/>
- Value
- double double double double
Value to add to or subtract from the Value of the RangeBase element. The default is 0.1.
Remarks
Slider overrides the metadata of this property and sets its default to 1. For more information, see Dependency properties overview.
SmallChangeProperty 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// This API is not available in Javascript.
The identifier for the SmallChange dependency property.
Value 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// This API is not available in Javascript.
<rangeBase Value="double"/>
- Value
- double double double double
The current setting of the range control, which may be coerced. The default is 0.
ValueProperty 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// This API is not available in Javascript.
The identifier for the Value dependency property.
Methods
OnMaximumChanged(Double, Double) 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// This API is not available in Javascript.
- oldMaximum
- double Double Double Double
Old value of the Maximum property.
- newMaximum
- double Double Double Double
New value of the Maximum property.
OnMinimumChanged(Double, Double) 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// This API is not available in Javascript.
- oldMinimum
- double Double Double Double
Old value of the Minimum property.
- newMinimum
- double Double Double Double
New value of the Minimum property.
OnValueChanged(Double, Double) 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// This API is not available in Javascript.
- oldValue
- double Double Double Double
Old value of the Value property.
- newValue
- double Double Double Double
New value of the Value property.
Events
ValueChanged ValueChanged ValueChanged ValueChanged
Occurs when the range value changes.
public : event RangeBaseValueChangedEventHandler ValueChangedpublic event RangeBaseValueChangedEventHandler ValueChangedPublic Event ValueChanged// This API is not available in Javascript.
<rangeBase ValueChanged="eventhandler"/>