Hi Louis,
Greetings from Syncfusion.
We have validated your query and your requirement is achieved by using ValueChanging event in the RangeSlider.
Please have a sample from the below link.
Code Snippet:
|
XAML:
<range:SfRangeSlider x:Name="rangeslider"
Minimum="0"
Maximum="100"
ShowRange="False"
Orientation="Horizontal"
StepFrequency="10"
TickFrequency="20"
ValueChangeMode="OnThumb"
ValueChanging="rangeslider_ValueChanging"
ShowValueLabel="True"
Value="70"/>
XAML.cs:
private void rangeslider_ValueChanging(object sender, Syncfusion.SfRangeSlider.XForms.ValueEventArgs e)
{
if(rangeslider.Value >= 70)
{
rangeslider.Value = 70;
}
} |
In this sample, we set the RangeSlider Limitation value to 70 and when you tried to move the slider above 70 again set the limit in the ValueChanging event.
Please let us know, if you have any other concerns.
Regards,
Ruba Shanmugam