Class
RangeSliderPrimitive

Represents an input slider control that can select a logical range.

Definition

Namespace:Telerik.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RangeSliderPrimitive : SliderBase

Inheritance: objectRadControlRadHeaderedControlRangeControlBaseRangeInputBaseSliderBaseRangeSliderPrimitive

Inherited Members SliderBase.TickFrequencyPropertySliderBase.OrientationPropertySliderBase.SelectionStartPropertySliderBase.SelectionEndPropertySliderBase.IsDeferredDraggingEnabledPropertySliderBase.SnapsToPropertySliderBase.TrackTapModePropertySliderBase.ShowValueToolTipPropertySliderBase.ShowRangeToolTipPropertySliderBase.ToolTipFormatPropertySliderBase.TickFrequencySliderBase.OrientationSliderBase.SelectionStartSliderBase.SelectionEndSliderBase.IsDeferredDraggingEnabledSliderBase.SnapsToSliderBase.TrackTapModeSliderBase.ShowValueToolTipSliderBase.ShowRangeToolTipSliderBase.ToolTipFormatRangeInputBase.SmallChangePropertyRangeInputBase.LargeChangePropertyRangeInputBase.SmallChangeRangeInputBase.LargeChangeRangeControlBase.MinimumPropertyRangeControlBase.MaximumPropertyRangeControlBase.MinimumRangeControlBase.MaximumRadHeaderedControl.HeaderPropertyRadHeaderedControl.HeaderTemplatePropertyRadHeaderedControl.HeaderStylePropertyRadHeaderedControl.HeaderRadHeaderedControl.HeaderTemplateRadHeaderedControl.HeaderStyleRadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.OnApplyTemplate()RadControl.OnIsEnabledChanged(bool, bool)RadControl.LoadCore()RadControl.OnLoaded()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RangeSliderPrimitive()

Initializes a new instance of the RangeSliderPrimitive class.

Declaration

cs-api-definition
public RangeSliderPrimitive()

Fields

SelectionEndThumbStyleProperty

Identifies the SelectionEndThumbStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionEndThumbStyleProperty

Field Value

DependencyProperty

SelectionMiddleThumbStyleProperty

Identifies the SelectionMiddleThumbStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionMiddleThumbStyleProperty

Field Value

DependencyProperty

SelectionStartThumbStyleProperty

Identifies the SelectionStartThumbStyle dependency property.

Declaration

cs-api-definition
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

cs-api-definition
public Style SelectionEndThumbStyle { get; set; }

Property Value

Style

Remarks

The Style should target the class.

Example

xaml
xmlns:telerikInput="using:Telerik.UI.Xaml.Controls.Input"
xmlns:telerikPrimitives="using:Telerik.UI.Xaml.Controls.Primitives"
xaml
<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

cs-api-definition
public Style SelectionMiddleThumbStyle { get; set; }

Property Value

Style

Remarks

The Style should target the class.

Example

xaml
xmlns:telerikInput="using:Telerik.UI.Xaml.Controls.Input"
xmlns:telerikPrimitives="using:Telerik.UI.Xaml.Controls.Primitives"
xaml
<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

cs-api-definition
public Style SelectionStartThumbStyle { get; set; }

Property Value

Style

Remarks

The Style should target the class.

Example

xaml
xmlns:telerikInput="using:Telerik.UI.Xaml.Controls.Input"
xmlns:telerikPrimitives="using:Telerik.UI.Xaml.Controls.Primitives"
xaml
<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.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides RadControl.ApplyTemplateCore()

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.

Declaration

cs-api-definition
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 RadControl.ArrangeOverride(Size)

ComposeVisualStateName()

Builds the current visual state for this instance.

Declaration

cs-api-definition
protected override string ComposeVisualStateName()

Returns

string

Overrides RadControl.ComposeVisualStateName()

MeasureOverride(Size)

Called in the measure layout pass to determine the desired size.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

The available size that was given by the layout system.

Returns

Size

Overrides RadControl.MeasureOverride(Size)

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides SliderBase.OnCreateAutomationPeer()

OnKeyDown(KeyRoutedEventArgs)

Called before the KeyDown event occurs.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyRoutedEventArgs e)

Parameters

e

KeyRoutedEventArgs

The data for the event.

OnPointerEntered(PointerRoutedEventArgs)

Called before the PointerEntered event occurs.

Declaration

cs-api-definition
protected override void OnPointerEntered(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

Event data for the event.

OnPointerExited(PointerRoutedEventArgs)

Called before the PointerExited event occurs.

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnTemplateApplied()

Overrides RangeControlBase.OnTemplateApplied()

UnapplyTemplateCore()

Removes the current control template. Occurs when a template has already been applied and a new one is applied.

Declaration

cs-api-definition
protected override void UnapplyTemplateCore()

Overrides RadControl.UnapplyTemplateCore()

UnloadCore()

Called within the handler of the event. Allows inheritors to provide their specific logic.

Declaration

cs-api-definition
protected override void UnloadCore()

Overrides RadControl.UnloadCore()