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.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Syntax:

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

Inheritance: objectDoubleRangeBase

Derived Classes: TimeBarSlider

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 TimeBarSlider 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.

Example

csharp
<telerik:TimeBarSlider	
	x:Name="TimeBarSlider1" 
	Width="100"
	IsSelectionRangeEnabled="True" />
csharp
TimeBarSlider TimeBarSlider1 = new TimeBarSlider();
TimeBarSlider1.Width = 100;		
TimeBarSlider1.Orientation = Orientation.Horizontal;
TimeBarSlider1.IsSelectionRangeEnabled = true;
LayoutRoot.Children.Add(TimeBarSlider1);

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 TimeBarSlider has to be set to True.

Example

csharp
<telerik:TimeBarSlider	
	x:Name="TimeBarSlider1" 
	Width="100"
	IsSelectionRangeEnabled="True"
	MaximumRangeSpan="0.1"/>
csharp
TimeBarSlider TimeBarSlider1 = new TimeBarSlider();
TimeBarSlider1.Width = 100;		
TimeBarSlider1.IsSelectionRangeEnabled = true;
TimeBarSlider1.MaximumRangeSpan = 0.7;
LayoutRoot.Children.Add(TimeBarSlider1);

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 TimeBarSlider has to be set to True.

Example

csharp
<telerik:TimeBarSlider	
	x:Name="TimeBarSlider1" 
	Width="100"
	IsSelectionRangeEnabled="True"
	MinimumRangeSpan="0.1"/>
csharp
TimeBarSlider TimeBarSlider1 = new TimeBarSlider();
TimeBarSlider1.Width = 100;		
TimeBarSlider1.IsSelectionRangeEnabled = true;
TimeBarSlider1.MinimumRangeSpan = 0.1;
LayoutRoot.Children.Add(TimeBarSlider1);

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.

Example

csharp
<telerik:TimeBarSlider	
	x:Name="TimeBarSlider1" 
	Width="100"
	Orientation="Horizontal"
	Minimum="0" Maximum="10"
	TickPlacement="TopLeft"
	TickFrequency="1"
	IsSelectionRangeEnabled="True" 
	SelectionEnd="8"
	SelectionStart="6"/>
csharp
TimeBarSlider TimeBarSlider1 = new TimeBarSlider();
TimeBarSlider1.Width = 100;		
TimeBarSlider1.Orientation = Orientation.Horizontal;
TimeBarSlider1.Minimum = 0;
TimeBarSlider1.Maximum = 10;
TimeBarSlider1.TickPlacement = TickPlacement.TopLeft;
TimeBarSlider1.TickFrequency = 1;
TimeBarSlider1.IsSelectionRangeEnabled = true;
TimeBarSlider1.SelectionEnd = 8;
TimeBarSlider1.SelectionStart = 6;
LayoutRoot.Children.Add(TimeBarSlider1);

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.

Example

csharp
<telerik:TimeBarSlider	
	x:Name="TimeBarSlider1" 
	Width="100"
	Orientation="Horizontal"
	Minimum="0" Maximum="10"
	TickPlacement="TopLeft"
	TickFrequency="1"
	IsSelectionRangeEnabled="True" 
	SelectionEnd="8"
	SelectionStart="6"/>
csharp
TimeBarSlider TimeBarSlider1 = new TimeBarSlider();
TimeBarSlider1.Width = 100;		
TimeBarSlider1.Orientation = Orientation.Horizontal;
TimeBarSlider1.Minimum = 0;
TimeBarSlider1.Maximum = 10;
TimeBarSlider1.TickPlacement = TickPlacement.TopLeft;
TimeBarSlider1.TickFrequency = 1;
TimeBarSlider1.IsSelectionRangeEnabled = true;
TimeBarSlider1.SelectionEnd = 8;
TimeBarSlider1.SelectionStart = 6;
LayoutRoot.Children.Add(TimeBarSlider1);

Methods

ArrangeOverride(Size)

Declaration

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

Parameters

finalSize

Size

Returns

Size

CoerceRangeSpanProperties()

Declaration

cs-api-definition
protected void CoerceRangeSpanProperties()

CoerceSelectionProperties()

Declaration

cs-api-definition
protected void CoerceSelectionProperties()

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

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>