Class RangeBase
Represents an element that has a value within a specific range, such as the ProgressBar, ScrollBar, and Slider controls.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public class RangeBase : Control
Constructors
| Improve this Doc View SourceRangeBase()
Provides base class initialization behavior for RangeBase-derived classes.
Declaration
protected RangeBase()
Fields
| Improve this Doc View SourceLargeChangeProperty
Identifies the LargeChange dependency property.
Declaration
public static readonly DependencyProperty LargeChangeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MaximumProperty
Identifies the Maximum dependency property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MinimumProperty
Identifies the Minimum dependency property.
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SmallChangeProperty
The identifier for the SmallChange dependency property.
Declaration
public static readonly DependencyProperty SmallChangeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueProperty
The identifier for the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceLargeChange
Gets or sets a value to be added to or subtracted from the Value of a RangeBase control. The default is 1.
Declaration
public double LargeChange { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Maximum
Gets or sets the highest possible Value of the range element. The default is 1.
Declaration
public double Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Minimum
Gets or sets the Minimum possible Value of the range element. The default is 0.
Declaration
public double Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
SmallChange
Gets or sets a Value to be added to or subtracted from the Value of a RangeBase control. The default is 0.1.
Declaration
public double SmallChange { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Value
Gets or sets the current setting of the range control, which may be coerced. The default is 0.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceOnMaximumChanged(Double, Double)
Called when the Maximum property changes.
Declaration
protected virtual void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMaximum | Old value of the Maximum property. |
System.Double | newMaximum | New value of the Maximum property. |
OnMinimumChanged(Double, Double)
Called when the Minimum property changes.
Declaration
protected virtual void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMinimum | Old value of the Minimum property. |
System.Double | newMinimum | New value of the Minimum property. |
OnValueChanged(Double, Double)
Fires the ValueChanged routed event.
Declaration
protected virtual void OnValueChanged(double oldValue, double newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldValue | Old value of the Value property. |
System.Double | newValue | New value of the Value property. |
Events
| Improve this Doc View SourceValueChanged
Occurs when the range value changes.
Declaration
public event RoutedPropertyChangedEventHandler<double> ValueChanged
Event Type
Type | Description |
---|---|
RoutedPropertyChangedEventHandler<System.Double> |