ClassRangeSliderPrimitive
Represents an input slider control that can select a logical range.
Definition
Namespace:Telerik.UI.Xaml.Controls.Primitives
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RangeSliderPrimitive : SliderBase
Inheritance: objectRadControlRadHeaderedControlRangeControlBaseRangeInputBaseSliderBaseRangeSliderPrimitive
Inherited Members
Constructors
RangeSliderPrimitive()
Initializes a new instance of the RangeSliderPrimitive class.
Declaration
public RangeSliderPrimitive()
Fields
SelectionEndThumbStyleProperty
Identifies the SelectionEndThumbStyle dependency property.
Declaration
public static readonly DependencyProperty SelectionEndThumbStyleProperty
Field Value
DependencyProperty
SelectionMiddleThumbStyleProperty
Identifies the SelectionMiddleThumbStyle dependency property.
Declaration
public static readonly DependencyProperty SelectionMiddleThumbStyleProperty
Field Value
DependencyProperty
SelectionStartThumbStyleProperty
Identifies the SelectionStartThumbStyle dependency property.
Declaration
public static readonly DependencyProperty SelectionStartThumbStyleProperty
Field Value
DependencyProperty
Properties
SelectionEndThumbStyle
Gets or sets the SelectionEndThumbStyle that defines the appearance settings applied to the control.
Declaration
public Style SelectionEndThumbStyle { get; set; }
Property Value
Style
Remarks
The Style should target the class.
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">
<Setter Property="SelectionEndThumbStyle">
<Setter.Value>
<Style TargetType="Thumb">
<Setter Property="Background" Value="Orange"/>
<Setter Property="Height" Value="13"/>
<Setter Property="Width" Value="13"/>
</Style>
</Setter.Value>
</Setter>
</Style>
</telerikInput:RadRangeSlider.SliderPrimitiveStyle>
</telerikInput:RadRangeSlider>
SelectionMiddleThumbStyle
Gets or sets the SelectionMiddleThumbStyle that defines the appearance settings applied to the control (the one between and ).
Declaration
public Style SelectionMiddleThumbStyle { get; set; }
Property Value
Style
Remarks
The Style should target the class.
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">
<Setter Property="SelectionMiddleThumbStyle">
<Setter.Value>
<Style TargetType="Thumb">
<Setter Property="Background" Value="Orange"/>
<Setter Property="Height" Value="13"/>
</Style>
</Setter.Value>
</Setter>
</Style>
</telerikInput:RadRangeSlider.SliderPrimitiveStyle>
</telerikInput:RadRangeSlider>
SelectionStartThumbStyle
Gets or sets the SelectionStartThumbStyle that defines the appearance settings applied to the control.
Declaration
public Style SelectionStartThumbStyle { get; set; }
Property Value
Style
Remarks
The Style should target the class.
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">
<Setter Property="SelectionStartThumbStyle">
<Setter.Value>
<Style TargetType="Thumb">
<Setter Property="Background" Value="Orange"/>
<Setter Property="Height" Value="13"/>
<Setter Property="Width" Value="13"/>
</Style>
</Setter.Value>
</Setter>
</Style>
</telerikInput:RadRangeSlider.SliderPrimitiveStyle>
</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.
ArrangeOverride(Size)
Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
The final area within the parent that this object should use to arrange itself and its children.
Returns
Size
The actual size that is used after the element is arranged in layout.
Overrides
ComposeVisualStateName()
Builds the current visual state for this instance.
Declaration
protected override string ComposeVisualStateName()
Returns
Overrides
MeasureOverride(Size)
Called in the measure layout pass to determine the desired size.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
The available size that was given by the layout system.
Returns
Size
Overrides
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnKeyDown(KeyRoutedEventArgs)
Called before the KeyDown event occurs.
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)
Parameters
e
KeyRoutedEventArgs
The data for the event.
OnPointerEntered(PointerRoutedEventArgs)
Called before the PointerEntered event occurs.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
Event data for the event.
OnPointerExited(PointerRoutedEventArgs)
Called before the PointerExited event occurs.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
Event data for the event.
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
UnloadCore()
Called within the handler of the event. Allows inheritors to provide their specific logic.
Declaration
protected override void UnloadCore()
Overrides