SfRangeslider

Hi,

 How to bind RangeStart and Range End,minimum and maximum in xamarin mvvm?

Thanks,
Yogita


1 Reply

SP Sakthivel Palaniyappan Syncfusion Team April 3, 2020 08:47 AM UTC

Hi Yogita,

Thanks for the update.

We have analyzed your query and you can achieve your requirement as like below code snippet.

ViewModel:

 
public class RangeViewModel : INotifyPropertyChanged 
{ 
    public event PropertyChangedEventHandler PropertyChanged; 
 
    private double rangeMinimum = 0; 
 
    public double RangeMinimum 
    { 
        get { return rangeMinimum; } 
        set { rangeMinimum = value; NotifyPropertyChanged(); } 
    } 
 
 
} 
 
XAML: 
    <ContentPage.BindingContext> 
        <local:RangeViewModel/> 
    </ContentPage.BindingContext> 
     
    <StackLayout> 
        <range:SfRangeSlider x:Name="rangeslider" Orientation="Horizontal" ShowValueLabel="True"  Minimum="{Binding RangeMinimum}" Maximum="{Binding RangeMaximum}" RangeStart="{Binding InternalRangeStart}" RangeEnd="{Binding InternalRangeEnd}"  ShowRange="true"/> 
    </StackLayout> 

We have created sample based on this, please find the sample from below.


Sample link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/RotatorSample-836846295.zip

Please let us know, if you have any other queries.

Regards,2
Sakthivel P.
 


Loader.
Up arrow icon