We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Separate the selected area color SfRangeSlider?

Platform: WinRT |
Control: SfRangeSlider

This article explains how to change the selected area color in SfRangeSlider.

This can be achieved by the following process. By using the ActiveTrackStyle property, yYou can modify the appearance of the active track of SfRangeSlider.

Xaml

  <Grid> 
        <Grid.Resources> 
            <ResourceDictionary> 
                <Style x:Key="ActiveTrackStyle" TargetType="Rectangle"> 
                    <Setter Property="Height" Value="9" /> 
                    <Setter Property="Fill" Value="Red" /> 
                </Style> 
            </ResourceDictionary> 
        </Grid.Resources> 
        <editors:SfRangeSlider 
            Width="300" 
            ActiveTrackStyle="{StaticResource ActiveTrackStyle}" 
            Maximum="100" 
            Minimum="0" 
            RangeEnd="60" 
            RangeStart="20" 
            ShowRange="True" /> 
    </Grid> 

Output

ActiveTrack

You can download the sample in this link.

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile