Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit Namespace / RangeSlider Class
Members


In This Topic
    RangeSlider Class
    In This Topic
    RangeSlider is a control which allows interactive input of a Lower and Higher value. The range of input is between the specified Minimum and Maximum values. Behaves much like the default behavior of the standard Slider control.
    Syntax
    'Declaration
     
    <TemplatePartAttribute(Name="PART_LowerRange", Type=System.Windows.Controls.Primitives.RepeatButton)>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class RangeSlider 
       Inherits System.Windows.Controls.Control
    'Usage
     
    Dim instance As RangeSlider
    [TemplatePart(Name="PART_LowerRange", Type=System.Windows.Controls.Primitives.RepeatButton)]
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class RangeSlider : System.Windows.Controls.Control 
    Example

    <xctk:RangeSlider x:Name="_rangeSlider"

                                              HorizontalAlignment="Center"

                                              VerticalAlignment="Center"

                                              Minimum="0"

                                              Maximum="100"

                                              LowerValue="30"

                                              HigherValue="70"

                                              Step="1"

                                              Width="600"

                                              Height="225"

                                              Orientation="Horizontal"

                                              LowerThumbBackground="#FFF0F0F0"

                                              HigherThumbBackground="#FFF0F0F0"

                                              RangeBackground="Black"

                                              HigherRangeBackground="Blue"

                                              LowerRangeBackground="Blue"

                                              HigherRangeStyle="{x:Null}"

                                              RangeStyle="{x:Null}"

                                              LowerRangeStyle="{x:Null}" />

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         Xceed.Wpf.Toolkit.RangeSlider

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also