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.
|
IsSelectionRangeEnabledProperty
Identifies the IsSelectionRangeEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSelectionRangeEnabledProperty
Field Value
System.
|
MaximumRangeSpanProperty
Identifies the MaximumRangeSpan dependency property.
Declaration
public static readonly DependencyProperty MaximumRangeSpanProperty
Field Value
System.
|
MinimumRangeSpanProperty
Identifies the MinimumRangeSpan dependency property.
Declaration
public static readonly DependencyProperty MinimumRangeSpanProperty
Field Value
System.
|
SelectionChangedEvent
Identifies the Hover routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
System.
|
SelectionEndProperty
Identifies the SelectionEnd dependency property.
Declaration
public static readonly DependencyProperty SelectionEndProperty
Field Value
System.
|
SelectionProperty
Identifies the SelectionProperty dependency property.
Declaration
public static readonly DependencyProperty SelectionProperty
Field Value
System.
|
SelectionStartProperty
Identifies the SelectionStart dependency property.
Declaration
public static readonly DependencyProperty SelectionStartProperty
Field Value
System.
|
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.
|
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.
|
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.
|
Remarks
The Selection
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.
|
MaximumRangeSpan
Gets or sets the maximum value distance between Selection
Declaration
public double MaximumRangeSpan { get; set; }
Property Value
System.
|
Remarks
The Is
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 Selection
Declaration
public double MinimumRangeSpan { get; set; }
Property Value
System.
|
Remarks
The Is
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
Selection The selection. |
Implements
SelectionEnd
Gets or sets the largest value of a specified selection.
Declaration
public double SelectionEnd { get; set; }
Property Value
System.
|
Implements
Remarks
The value of the Selection
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. 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.
|
Implements
Remarks
IsSelectionRangeEnabled must be True in order to use Selection
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
Rad
|
Implements
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.
|
Returns
System.
|
CoerceRangeSpanProperties()
Declaration
protected void CoerceRangeSpanProperties()
CoerceSelectionProperties()
Declaration
protected void CoerceSelectionProperties()
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
OnIsSelectionRangeEnabledChanged()
Called when the IsSelectionRangeEnabled property changes value.
Declaration
protected virtual void OnIsSelectionRangeEnabledChanged()
OnMaximumChanged(Double, Double)
Called when the System.
Declaration
protected override void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters
System. Old value of the System. |
System. New value of the System. |
OnMaximumRangeSpanChanged(Double, Double)
Called when MaximumRangeSpanChanged event occurs.
Declaration
protected virtual void OnMaximumRangeSpanChanged(double oldValue, double newValue)
Parameters
System. The old value. |
System. The new value. |
OnMinimumChanged(Double, Double)
Called when the System.
Declaration
protected override void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters
System. Old value of the System. |
System. New value of the System. |
OnMinimumRangeSpanChanged(Double, Double)
Called when MinimumRangeSpanChanged event occurs.
Declaration
protected virtual void OnMinimumRangeSpanChanged(double oldValue, double newValue)
Parameters
System. The old value. |
System. 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. The old value. |
System. The new value. |
OnSelectionStartChanged(Double, Double)
Called when SelectionStartChanged event occurs.
Declaration
protected virtual void OnSelectionStartChanged(double oldValue, double newValue)
Parameters
System. The old value. |
System. The new value. |
remove_SelectionChanged(RadRoutedEventHandler)
Declaration
public void remove_SelectionChanged(RadRoutedEventHandler value)
Parameters
Rad
|
Implements
Events
MaximumRangeSpanChanged
Occurs when MaximumRangeSpan property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> MaximumRangeSpanChanged
Event Type
System.
|
MinimumRangeSpanChanged
Occurs when MinimumRangeSpan property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> MinimumRangeSpanChanged
Event Type
System.
|
SelectionChanged
Occurs when the Selection property has changed.
Declaration
public event RadRoutedEventHandler SelectionChanged
Event Type
Implements
SelectionEndChanged
Occurs when SelectionEnd property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> SelectionEndChanged
Event Type
System.
|
SelectionStartChanged
Occurs when SelectionStart property changes value.
Declaration
public event RoutedPropertyChangedEventHandler<double> SelectionStartChanged
Event Type
System.
|