ClassDoubleRangeBase
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:
public class DoubleRangeBase : RangeBase, IRangeSelector<double>
Inheritance: objectDoubleRangeBase
Derived Classes:
Implements:
Constructors
DoubleRangeBase()
Declaration
public DoubleRangeBase()
Fields
IsCoercionSuppressedProperty
Identifies the IsCoercionSuppressed dependency property.
Declaration
public static readonly DependencyProperty IsCoercionSuppressedProperty
Field Value
DependencyProperty
IsSelectionRangeEnabledProperty
Identifies the IsSelectionRangeEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSelectionRangeEnabledProperty
Field Value
DependencyProperty
MaximumRangeSpanProperty
Identifies the MaximumRangeSpan dependency property.
Declaration
public static readonly DependencyProperty MaximumRangeSpanProperty
Field Value
DependencyProperty
MinimumRangeSpanProperty
Identifies the MinimumRangeSpan dependency property.
Declaration
public static readonly DependencyProperty MinimumRangeSpanProperty
Field Value
DependencyProperty
SelectionChangedEvent
Identifies the Hover routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
RoutedEvent
SelectionEndProperty
Identifies the SelectionEnd dependency property.
Declaration
public static readonly DependencyProperty SelectionEndProperty
Field Value
DependencyProperty
SelectionProperty
Identifies the SelectionProperty dependency property.
Declaration
public static readonly DependencyProperty SelectionProperty
Field Value
DependencyProperty
SelectionStartProperty
Identifies the SelectionStart dependency property.
Declaration
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
public bool IsCoercionSuppressed { get; set; }
Property Value
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.
IsSelectionRangeEnabled
Gets or sets a value that indicates whether the RadSlider can displays a selection range. This is a dependency property.
Declaration
public bool IsSelectionRangeEnabled { get; set; }
Property Value
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
protected bool IsUserManipulationInProgress { get; set; }
Property Value
True if this instance is user manipulation in progress; otherwise, false.
MaximumRangeSpan
Gets or sets the maximum value distance between SelectionStart and SelectionEnd.
Declaration
public double MaximumRangeSpan { get; set; }
Property Value
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
public double MinimumRangeSpan { get; set; }
Property Value
Remarks
The IsSelectionRangeEnabled property of RadSlider has to be set to True.
Selection
Gets or sets the selection - SelectionStart and SelectionEnd.
Declaration
public SelectionRange<double> Selection { get; set; }
Property Value
The selection.
Implements
SelectionEnd
Gets or sets the largest value of a specified selection.
Declaration
public double SelectionEnd { get; set; }
Property Value
Implements
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
public double SelectionRange { get; }
Property Value
The difference between SelectionStart and SelectionEnd.
SelectionStart
Gets or sets the smallest value of a specified selection.
Declaration
public double SelectionStart { get; set; }
Property Value
Implements
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
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
protected void CoerceRangeSpanProperties()
CoerceSelectionProperties()
Coerces the SelectionStart, SelectionEnd and Selection properties based on the selection state of the control.
Declaration
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
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsSelectionRangeEnabledChanged()
Called when the IsSelectionRangeEnabled property changes value.
Declaration
protected virtual void OnIsSelectionRangeEnabledChanged()
OnMaximumChanged(double, double)
Called when the property changes.
OnMaximumRangeSpanChanged(double, double)
Called when MaximumRangeSpanChanged event occurs.
OnMinimumChanged(double, double)
Called when the property changes.
OnMinimumRangeSpanChanged(double, double)
Called when MinimumRangeSpanChanged event occurs.
OnSelectionChanged()
Called when SelectionRange event occurs.
Declaration
protected virtual void OnSelectionChanged()
OnSelectionEndChanged(double, double)
Called when SelectionEndChanged event occurs.
OnSelectionStartChanged(double, double)
Called when SelectionStartChanged event occurs.
Events
MaximumRangeSpanChanged
Occurs when MaximumRangeSpan property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> MaximumRangeSpanChanged
Event Value
RoutedPropertyChangedEventHandler<double>
MinimumRangeSpanChanged
Occurs when MinimumRangeSpan property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> MinimumRangeSpanChanged
Event Value
RoutedPropertyChangedEventHandler<double>
SelectionChanged
Occurs when the Selection property has changed.
Declaration
public event RadRoutedEventHandler SelectionChanged
Event Value
Implements
SelectionEndChanged
Occurs when SelectionEnd property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> SelectionEndChanged
Event Value
RoutedPropertyChangedEventHandler<double>
SelectionStartChanged
Occurs when SelectionStart property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> SelectionStartChanged
Event Value
RoutedPropertyChangedEventHandler<double>