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.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class DoubleRangeBase : RangeBase, IRangeSelector<double>
Constructors
DoubleRangeBase()
Declaration
public DoubleRangeBase()
Fields
IsCoercionSuppressedProperty
Identifies the IsCoercionSuppressed dependency property.
Declaration
public static readonly DependencyProperty IsCoercionSuppressedProperty
Field Value
System.Windows.DependencyProperty
|
IsSelectionRangeEnabledProperty
Identifies the IsSelectionRangeEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSelectionRangeEnabledProperty
Field Value
System.Windows.DependencyProperty
|
MaximumRangeSpanProperty
Identifies the MaximumRangeSpan dependency property.
Declaration
public static readonly DependencyProperty MaximumRangeSpanProperty
Field Value
System.Windows.DependencyProperty
|
MinimumRangeSpanProperty
Identifies the MinimumRangeSpan dependency property.
Declaration
public static readonly DependencyProperty MinimumRangeSpanProperty
Field Value
System.Windows.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
System.Windows.DependencyProperty
|
SelectionProperty
Identifies the SelectionProperty dependency property.
Declaration
public static readonly DependencyProperty SelectionProperty
Field Value
System.Windows.DependencyProperty
|
SelectionStartProperty
Identifies the SelectionStart dependency property.
Declaration
public static readonly DependencyProperty SelectionStartProperty
Field Value
System.Windows.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
System.Boolean
|
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
protected bool IsInitializing { get; set; }
Property Value
System.Boolean
|
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
System.Boolean
|
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.
Examples
<telerik:RadSlider
x:Name="radSlider1"
Width="100"
IsSelectionRangeEnabled="True" />
RadSlider radSlider1 = new RadSlider();
radSlider1.Width = 100;
radSlider1.Orientation = Orientation.Horizontal;
radSlider1.IsSelectionRangeEnabled = true;
LayoutRoot.Children.Add(radSlider1);
IsUserManipulationInProgress
Gets or sets a value indicating whether this instance is user manipulation in progress.
Declaration
protected bool IsUserManipulationInProgress { get; set; }
Property Value
System.Boolean
|
MaximumRangeSpan
Gets or sets the maximum value distance between SelectionStart and SelectionEnd.
Declaration
public double MaximumRangeSpan { get; set; }
Property Value
System.Double
|
Remarks
The IsSelectionRangeEnabled property of RadSlider has to be set to True.
Examples
<telerik:RadSlider
x:Name="radSlider1"
Width="100"
IsSelectionRangeEnabled="True"
MaximumRangeSpan="0.1"/>
RadSlider radSlider1 = new RadSlider();
radSlider1.Width = 100;
radSlider1.IsSelectionRangeEnabled = true;
radSlider1.MaximumRangeSpan = 0.7;
LayoutRoot.Children.Add(radSlider1);
MinimumRangeSpan
Gets or sets the minimum value distance between SelectionStart and SelectionEnd.
Declaration
public double MinimumRangeSpan { get; set; }
Property Value
System.Double
|
Remarks
The IsSelectionRangeEnabled property of RadSlider has to be set to True.
Examples
<telerik:RadSlider
x:Name="radSlider1"
Width="100"
IsSelectionRangeEnabled="True"
MinimumRangeSpan="0.1"/>
RadSlider radSlider1 = new RadSlider();
radSlider1.Width = 100;
radSlider1.IsSelectionRangeEnabled = true;
radSlider1.MinimumRangeSpan = 0.1;
LayoutRoot.Children.Add(radSlider1);
Selection
Gets or sets the selection - SelectionStart and SelectionEnd.
Declaration
public SelectionRange<double> Selection { get; set; }
Property Value
SelectionRange<System.Double>
The selection. |
Implements
SelectionEnd
Gets or sets the largest value of a specified selection.
Declaration
public double SelectionEnd { get; set; }
Property Value
System.Double
|
Implements
Remarks
The value of the SelectionEnd property cannot be greater than the value of the System.Windows.Controls.Primitives.RangeBase.Maximum property and cannot be less than the value of the System.Windows.Controls.Primitives.RangeBase.Minimum 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 System.Windows.Controls.Primitives.RangeBase.Maximum property or less than the value of the System.Windows.Controls.Primitives.RangeBase.Minimum property, the value is set to the value of the System.Windows.Controls.Primitives.RangeBase.Maximum or System.Windows.Controls.Primitives.RangeBase.Minimum property respectively.
Examples
<telerik:RadSlider
x:Name="radSlider1"
Width="100"
Orientation="Horizontal"
Minimum="0" Maximum="10"
TickPlacement="TopLeft"
TickFrequency="1"
IsSelectionRangeEnabled="True"
SelectionEnd="8"
SelectionStart="6"/>
RadSlider radSlider1 = new RadSlider();
radSlider1.Width = 100;
radSlider1.Orientation = Orientation.Horizontal;
radSlider1.Minimum = 0;
radSlider1.Maximum = 10;
radSlider1.TickPlacement = TickPlacement.TopLeft;
radSlider1.TickFrequency = 1;
radSlider1.IsSelectionRangeEnabled = true;
radSlider1.SelectionEnd = 8;
radSlider1.SelectionStart = 6;
LayoutRoot.Children.Add(radSlider1);
SelectionRange
Gets the difference between SelectionStart and SelectionEnd.
Declaration
public double SelectionRange { get; }
Property Value
System.Double
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
System.Double
|
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.
Examples
<telerik:RadSlider
x:Name="radSlider1"
Width="100"
Orientation="Horizontal"
Minimum="0" Maximum="10"
TickPlacement="TopLeft"
TickFrequency="1"
IsSelectionRangeEnabled="True"
SelectionEnd="8"
SelectionStart="6"/>
RadSlider radSlider1 = new RadSlider();
radSlider1.Width = 100;
radSlider1.Orientation = Orientation.Horizontal;
radSlider1.Minimum = 0;
radSlider1.Maximum = 10;
radSlider1.TickPlacement = TickPlacement.TopLeft;
radSlider1.TickFrequency = 1;
radSlider1.IsSelectionRangeEnabled = true;
radSlider1.SelectionEnd = 8;
radSlider1.SelectionStart = 6;
LayoutRoot.Children.Add(radSlider1);
Methods
add_SelectionChanged(RadRoutedEventHandler)
Declaration
public void add_SelectionChanged(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler
value
|
Implements
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size
finalSize
|
Returns
System.Windows.Size
|
CoerceRangeSpanProperties()
Declaration
protected void CoerceRangeSpanProperties()
CoerceSelectionProperties()
Declaration
protected void CoerceSelectionProperties()
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnIsSelectionRangeEnabledChanged()
Called when the IsSelectionRangeEnabled property changes value.
Declaration
protected virtual void OnIsSelectionRangeEnabledChanged()
OnMaximumChanged(Double, Double)
Called when the System.Windows.Controls.Primitives.RangeBase.Maximum property changes.
Declaration
protected override void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters
System.Double
oldMaximum
Old value of the System.Windows.Controls.Primitives.RangeBase.Maximum property. |
System.Double
newMaximum
New value of the System.Windows.Controls.Primitives.RangeBase.Maximum property. |
OnMaximumRangeSpanChanged(Double, Double)
Called when MaximumRangeSpanChanged event occurs.
Declaration
protected virtual void OnMaximumRangeSpanChanged(double oldValue, double newValue)
Parameters
System.Double
oldValue
The old value. |
System.Double
newValue
The new value. |
OnMinimumChanged(Double, Double)
Called when the System.Windows.Controls.Primitives.RangeBase.Minimum property changes.
Declaration
protected override void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters
System.Double
oldMinimum
Old value of the System.Windows.Controls.Primitives.RangeBase.Minimum property. |
System.Double
newMinimum
New value of the System.Windows.Controls.Primitives.RangeBase.Minimum property. |
OnMinimumRangeSpanChanged(Double, Double)
Called when MinimumRangeSpanChanged event occurs.
Declaration
protected virtual void OnMinimumRangeSpanChanged(double oldValue, double newValue)
Parameters
System.Double
oldValue
The old value. |
System.Double
newValue
The new value. |
OnSelectionChanged()
Called when SelectionRange event occurs.
Declaration
protected virtual void OnSelectionChanged()
OnSelectionEndChanged(Double, Double)
Called when SelectionEndChanged event occurs.
Declaration
protected virtual void OnSelectionEndChanged(double oldValue, double newValue)
Parameters
System.Double
oldValue
The old value. |
System.Double
newValue
The new value. |
OnSelectionStartChanged(Double, Double)
Called when SelectionStartChanged event occurs.
Declaration
protected virtual void OnSelectionStartChanged(double oldValue, double newValue)
Parameters
System.Double
oldValue
The old value. |
System.Double
newValue
The new value. |
remove_SelectionChanged(RadRoutedEventHandler)
Declaration
public void remove_SelectionChanged(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler
value
|
Implements
Events
MaximumRangeSpanChanged
Occurs when MaximumRangeSpan property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> MaximumRangeSpanChanged
Event Type
System.Windows.RoutedPropertyChangedEventHandler<System.Double>
|
MinimumRangeSpanChanged
Occurs when MinimumRangeSpan property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> MinimumRangeSpanChanged
Event Type
System.Windows.RoutedPropertyChangedEventHandler<System.Double>
|
SelectionChanged
Occurs when the Selection property has changed.
Declaration
public event RadRoutedEventHandler SelectionChanged
Event Type
RadRoutedEventHandler
|
Implements
SelectionEndChanged
Occurs when SelectionEnd property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> SelectionEndChanged
Event Type
System.Windows.RoutedPropertyChangedEventHandler<System.Double>
|
SelectionStartChanged
Occurs when SelectionStart property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> SelectionStartChanged
Event Type
System.Windows.RoutedPropertyChangedEventHandler<System.Double>
|