Class
DoubleRangeBase

DoubleRangeBase inherits RangeBase and introduces two new fields - SelectionStart and SelectionEnd. SelectionStart cannot be greater than SelectionEnd and SelectionEnd cannot be less than SelectionStart.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class DoubleRangeBase : RangeBase, IRangeSelector<double>

Inheritance: objectDoubleRangeBase

Derived Classes: RadSlider

Implements: IRangeSelector<double>

Constructors

DoubleRangeBase()

Declaration

cs-api-definition
public DoubleRangeBase()

Fields

IsCoercionSuppressedProperty

Identifies the IsCoercionSuppressed dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsCoercionSuppressedProperty

Field Value

DependencyProperty

IsSelectionRangeEnabledProperty

Identifies the IsSelectionRangeEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectionRangeEnabledProperty

Field Value

DependencyProperty

MaximumRangeSpanProperty

Identifies the MaximumRangeSpan dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaximumRangeSpanProperty

Field Value

DependencyProperty

MinimumRangeSpanProperty

Identifies the MinimumRangeSpan dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinimumRangeSpanProperty

Field Value

DependencyProperty

SelectionChangedEvent

Identifies the Hover routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectionChangedEvent

Field Value

RoutedEvent

SelectionEndProperty

Identifies the SelectionEnd dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionEndProperty

Field Value

DependencyProperty

SelectionProperty

Identifies the SelectionProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionProperty

Field Value

DependencyProperty

SelectionStartProperty

Identifies the SelectionStart dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionStartProperty

Field Value

DependencyProperty

Properties

IsCoercionSuppressed

Gets or sets a value that indicates whether the slider should coerce the setting of related properties like Value, SelectionStart, SelectionEnd, Minimum, Maximum, MinimumRangeSpan and MaximumRangeSpan.

Declaration

cs-api-definition
public bool IsCoercionSuppressed { get; set; }

Property Value

bool

Remarks

If set to True, the coercion is done only when the user manipulates the slider and not if the related properties are set by code or through binding.

IsInitializing

Gets or sets whether the control is initializing.

Declaration

cs-api-definition
protected bool IsInitializing { get; set; }

Property Value

bool

IsSelectionRangeEnabled

Gets or sets a value that indicates whether the RadSlider can displays a selection range. This is a dependency property.

Declaration

cs-api-definition
public bool IsSelectionRangeEnabled { get; set; }

Property Value

bool

Remarks

The SelectionStart and SelectionEnd properties define a selection range and must be set for the selection range to appear when IsSelectionRangeEnabled is set to true.

IsUserManipulationInProgress

Gets or sets a value indicating whether this instance is user manipulation in progress.

Declaration

cs-api-definition
protected bool IsUserManipulationInProgress { get; set; }

Property Value

bool

True if this instance is user manipulation in progress; otherwise, false.

MaximumRangeSpan

Gets or sets the maximum value distance between SelectionStart and SelectionEnd.

Declaration

cs-api-definition
public double MaximumRangeSpan { get; set; }

Property Value

double

Remarks

The IsSelectionRangeEnabled property of RadSlider has to be set to True.

MinimumRangeSpan

Gets or sets the minimum value distance between SelectionStart and SelectionEnd.

Declaration

cs-api-definition
public double MinimumRangeSpan { get; set; }

Property Value

double

Remarks

The IsSelectionRangeEnabled property of RadSlider has to be set to True.

Selection

Gets or sets the selection - SelectionStart and SelectionEnd.

Declaration

cs-api-definition
public SelectionRange<double> Selection { get; set; }

Property Value

SelectionRange<double>

The selection.

Implements IRangeSelector<double>.Selection

SelectionEnd

Gets or sets the largest value of a specified selection.

Declaration

cs-api-definition
public double SelectionEnd { get; set; }

Property Value

double

Implements IRangeSelector<double>.SelectionEnd

Remarks

The value of the SelectionEnd property cannot be greater than the value of the property and cannot be less than the value of the property. The value of the SelectionEnd property must also be greater than or equal to the value of the SelectionStart property. If the value of the SelectionEnd property is greater than the value of the property or less than the value of the property, the value is set to the value of the or property respectively.

SelectionRange

Gets the difference between SelectionStart and SelectionEnd.

Declaration

cs-api-definition
public double SelectionRange { get; }

Property Value

double

The difference between SelectionStart and SelectionEnd.

SelectionStart

Gets or sets the smallest value of a specified selection.

Declaration

cs-api-definition
public double SelectionStart { get; set; }

Property Value

double

Implements IRangeSelector<double>.SelectionStart

Remarks

IsSelectionRangeEnabled must be True in order to use SelectionStart and SelectionEnd The value of the SelectionStart property cannot be less than the value of the Minimum property and cannot be greater than the value of the Maximum property. The value of the SelectionEnd property must also be greater than or equal to the value of the SelectionStart property. If SelectionStart is less than Minimum or greater than Maximum, SelectionStart is set to the value of Minimum or Maximum respectively.

Methods

ArrangeOverride(Size)

Arranges the content of the DoubleRangeBase control and sets the IsArranged property to true.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

The final area within the parent that this element should use to arrange itself and its children.

Returns

Size

The actual size used after arranging the element.

CoerceRangeSpanProperties()

Coerces the MinimumRangeSpan and MaximumRangeSpan properties based on the selection state of the control.

Declaration

cs-api-definition
protected void CoerceRangeSpanProperties()

CoerceSelectionProperties()

Coerces the SelectionStart, SelectionEnd and Selection properties based on the selection state of the control.

Declaration

cs-api-definition
protected void CoerceSelectionProperties()

OnApplyTemplate()

Called when the template of the DoubleRangeBase control is applied. This method is responsible for establishing the visual elements and bindings needed for the control's functionality.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsSelectionRangeEnabledChanged()

Called when the IsSelectionRangeEnabled property changes value.

Declaration

cs-api-definition
protected virtual void OnIsSelectionRangeEnabledChanged()

OnMaximumChanged(double, double)

Called when the property changes.

Declaration

cs-api-definition
protected override void OnMaximumChanged(double oldMaximum, double newMaximum)

Parameters

oldMaximum

double

Old value of the property.

newMaximum

double

New value of the property.

OnMaximumRangeSpanChanged(double, double)

Called when MaximumRangeSpanChanged event occurs.

Declaration

cs-api-definition
protected virtual void OnMaximumRangeSpanChanged(double oldValue, double newValue)

Parameters

oldValue

double

The old value.

newValue

double

The new value.

OnMinimumChanged(double, double)

Called when the property changes.

Declaration

cs-api-definition
protected override void OnMinimumChanged(double oldMinimum, double newMinimum)

Parameters

oldMinimum

double

Old value of the property.

newMinimum

double

New value of the property.

OnMinimumRangeSpanChanged(double, double)

Called when MinimumRangeSpanChanged event occurs.

Declaration

cs-api-definition
protected virtual void OnMinimumRangeSpanChanged(double oldValue, double newValue)

Parameters

oldValue

double

The old value.

newValue

double

The new value.

OnSelectionChanged()

Called when SelectionRange event occurs.

Declaration

cs-api-definition
protected virtual void OnSelectionChanged()

OnSelectionEndChanged(double, double)

Called when SelectionEndChanged event occurs.

Declaration

cs-api-definition
protected virtual void OnSelectionEndChanged(double oldValue, double newValue)

Parameters

oldValue

double

The old value.

newValue

double

The new value.

OnSelectionStartChanged(double, double)

Called when SelectionStartChanged event occurs.

Declaration

cs-api-definition
protected virtual void OnSelectionStartChanged(double oldValue, double newValue)

Parameters

oldValue

double

The old value.

newValue

double

The new value.

Events

MaximumRangeSpanChanged

Occurs when MaximumRangeSpan property changes value.

Declaration

cs-api-definition
public event RoutedPropertyChangedEventHandler<double> MaximumRangeSpanChanged

Event Value

RoutedPropertyChangedEventHandler<double>

MinimumRangeSpanChanged

Occurs when MinimumRangeSpan property changes value.

Declaration

cs-api-definition
public event RoutedPropertyChangedEventHandler<double> MinimumRangeSpanChanged

Event Value

RoutedPropertyChangedEventHandler<double>

SelectionChanged

Occurs when the Selection property has changed.

Declaration

cs-api-definition
public event RadRoutedEventHandler SelectionChanged

Event Value

RadRoutedEventHandler

Implements IRangeSelector<double>.SelectionChanged

SelectionEndChanged

Occurs when SelectionEnd property changes value.

Declaration

cs-api-definition
public event RoutedPropertyChangedEventHandler<double> SelectionEndChanged

Event Value

RoutedPropertyChangedEventHandler<double>

SelectionStartChanged

Occurs when SelectionStart property changes value.

Declaration

cs-api-definition
public event RoutedPropertyChangedEventHandler<double> SelectionStartChanged

Event Value

RoutedPropertyChangedEventHandler<double>