ClassRadRangeSlider
Represents an input control that can be used for visual selection of a logical range. The selection range is visualized with scaled axes.
Definition
Namespace:Telerik.UI.Xaml.Controls.Input
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadRangeSlider : SliderBase
Inheritance: objectRadControlRadHeaderedControlRangeControlBaseRangeInputBaseSliderBaseRadRangeSlider
Inherited Members
Constructors
RadRangeSlider()
Initializes a new instance of the RadRangeSlider class.
Declaration
public RadRangeSlider()
Fields
BottomRightScaleStyleProperty
Identifies the BottomRightScaleStyle dependency property.
Declaration
public static readonly DependencyProperty BottomRightScaleStyleProperty
Field Value
DependencyProperty
LabelFormatProperty
Identifies the LabelFormat dependency property.
Declaration
public static readonly DependencyProperty LabelFormatProperty
Field Value
DependencyProperty
SliderPrimitiveStyleProperty
Identifies the SliderPrimitiveStyle dependency property.
Declaration
public static readonly DependencyProperty SliderPrimitiveStyleProperty
Field Value
DependencyProperty
TopLeftScaleStyleProperty
Identifies the TopLeftScaleStyle dependency property.
Declaration
public static readonly DependencyProperty TopLeftScaleStyleProperty
Field Value
DependencyProperty
Properties
BottomRightScaleStyle
Gets or sets the BottomRightScaleStyle that defines the appearance settings applied to the bottom/right Scale control.
Declaration
public Style BottomRightScaleStyle { get; set; }
Property Value
Style
Remarks
The style should target the ScalePrimitive type.
Example
<telerikInput:RadRangeSlider>
<telerikInput:RadRangeSlider.BottomRightScaleStyle>
<Style TargetType="telerikPrimitives:ScalePrimitive">
<Setter Property="LabelPlacement" Value="BottomRight"/>
<Setter Property="TickPlacement" Value="TopLeft"/>
<Setter Property="TickTemplate">
<Setter.Value>
<DataTemplate>
<Ellipse Width="5" Height="5" Margin="-2.5,10,0,0" Fill="LimeGreen"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerikInput:RadRangeSlider.BottomRightScaleStyle>
</telerikInput:RadRangeSlider>
LabelFormat
Gets or sets the string that is used to format the labels of the component. The value passed should follow the syntax, expected by the runtime String.Format: { index[,alignment][:formatString] }.
Declaration
public string LabelFormat { get; set; }
Property Value
Example
<telerikInput:RadRangeSlider Minimum="0" Maximum="1" LabelFormat="{}{0:P0}"/>
SliderPrimitiveStyle
Gets or sets the SliderPrimitiveStyle that defines the appearance settings applied to the inner RangeSliderPrimitive control.
Declaration
public Style SliderPrimitiveStyle { get; set; }
Property Value
Style
Remarks
The style should target the RangeSliderPrimitive type.
Example
xmlns:telerikInput="using:Telerik.UI.Xaml.Controls.Input"
xmlns:telerikPrimitives="using:Telerik.UI.Xaml.Controls.Primitives"
<telerikInput:RadRangeSlider >
<telerikInput:RadRangeSlider.SliderPrimitiveStyle>
<Style TargetType="telerikPrimitives:RangeSliderPrimitive">
<!-- set the RangeSliderPrimitive properties here -->
</Style>
</telerikInput:RadRangeSlider.SliderPrimitiveStyle>
</telerikInput:RadRangeSlider>
TopLeftScaleStyle
Gets or sets the TopLeftScaleStyle that defines the appearance settings applied to the top/left Scale control.
Declaration
public Style TopLeftScaleStyle { get; set; }
Property Value
Style
Remarks
The style should target the ScalePrimitive type.
Example
<telerikInput:RadRangeSlider>
<telerikInput:RadRangeSlider.TopLeftScaleStyle>
<Style TargetType="telerikPrimitives:ScalePrimitive">
<Setter Property="LabelPlacement" Value="None"/>
<Setter Property="TickPlacement" Value="BottomRight"/>
<Setter Property="TickTemplate">
<Setter.Value>
<DataTemplate>
<Ellipse Width="5" Height="5" Margin="-2.5,0,0,10" Fill="LimeGreen"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerikInput:RadRangeSlider.TopLeftScaleStyle>
</telerikInput:RadRangeSlider>
Methods
ApplyTemplateCore()
Called when the Framework is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected override void OnTemplateApplied()
Overrides
UnapplyTemplateCore()
Removes the current control template. Occurs when a template has already been applied and a new one is applied.
Declaration
protected override void UnapplyTemplateCore()
Overrides