New to Telerik UI for WPFStart a free 30-day trial

Represents an abstract base class for controls that define a range of values, supporting properties such as Minimum, Maximum, SmallChange, LargeChange, and current Value. This class enables functionality for manipulating the value within defined limits and supports automatic reverse behavior when the value reaches either endpoint. It provides robust event handling for value changes, enabling easy data binding and client-side control of the range's behavior in UI applications.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public abstract class RadRangeBase : Control

Inheritance: objectRadRangeBase

Derived Classes: RadNumericUpDown

Constructors

Initializes a new instance of the RadRangeBase class.

C#
protected RadRangeBase()

Fields

AutoReverseProperty

DependencyProperty

Identifies the AutoReverse dependency property.

C#
public static readonly DependencyProperty AutoReverseProperty

LargeChangeProperty

DependencyProperty

Identifies the LargeChange dependency property.

C#
public static readonly DependencyProperty LargeChangeProperty

MaximumProperty

DependencyProperty

Identifies the Maximum dependency property.

C#
public static readonly DependencyProperty MaximumProperty

MinimumProperty

DependencyProperty

Identifies the Minimum dependency property.

C#
public static readonly DependencyProperty MinimumProperty

SmallChangeProperty

DependencyProperty

Identifies the SmallChange dependency property.

C#
public static readonly DependencyProperty SmallChangeProperty

ValueProperty

DependencyProperty

Identifies the Value dependency property.

C#
public static readonly DependencyProperty ValueProperty

Properties

Gets or sets the value that specifies whether the control will change its value to its minimum when it reaches its maximum, or vice versa.

C#
public bool AutoReverse { get; set; }

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

C#
public double LargeChange { get; set; }

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

C#
public double Maximum { get; set; }

Gets or sets the lowest possible RadRangeBase.Value of the range element.

C#
public double Minimum { get; set; }

Gets or sets the value to be added to or subtracted from the RadRangeBase.Value.

C#
public double SmallChange { get; set; }

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

C#
public double? Value { get; set; }

Methods

Adds the provided delta to the current value.

C#
protected virtual void ChangeValue(double delta)
Parameters:deltadouble

The amount to add to Value.

Called when the RadRangeBase.Maximum property changes.

C#
protected virtual void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters:oldMaximumdouble

Old value of the RadRangeBase.Maximum property.

newMaximumdouble

New value of the RadRangeBase.Maximum property.

Called when the RadRangeBase.Minimum property changes.

C#
protected virtual void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters:oldMinimumdouble

Old value of the RadRangeBase.Minimum property.

newMinimumdouble

New value of the RadRangeBase.Minimum property.

Raises the RadRangeBase.ValueChanged routed event.

C#
protected virtual void OnValueChanged(RadRangeBaseValueChangedEventArgs e)
Parameters:eRadRangeBaseValueChangedEventArgs

Returns a string that represents this instance.

C#
public override string ToString()
Returns:

string

A string that represents this instance.

Events

Occurs when the range value changes.

C#
public event EventHandler<RadRangeBaseValueChangedEventArgs> ValueChanged