UWP mvvm binding for RangeStart RangeEnd doesnt work


On UWP binding doesnt work for  RangeStart and RangeEnd after i change the them. Basically I have a function to reset to initial values which are 0 and 5, if I change to 1 and 4 and use viewmodel to reset to 0 and 5, it doesnt effect the UI, Slider is still showin 1 and 4.

Xaml:
<range:SfRangeSlider x:Name="rangeSlider" Margin="0"  
                                                     TrackSelectionColor="{DynamicResource backgroundColor}" RangeEnd="{Binding RatingTo,Mode=OneWay}" RangeStart="{Binding RatingFrom, Mode=OneWay}"  ShowRange="true" Minimum="0" Maximum="5" SnapsTo="None" TickPlacement="Inline" TickFrequency="1" Orientation="Horizontal" 
                                                     ValuePlacement="TopLeft" ToolTipPlacement="BottomRight" ToolTipPrecision="2" />


ViewModel

   public float RatingFrom { get; set; } = 0;
        public float RatingTo { get; set; } = 5;

RatingFrom = 0;
            RatingTo = 5;
            RaisePropertyChanged("RatingFrom");
            RaisePropertyChanged("RatingTo");


3 Replies

PA Paul Anderson S Syncfusion Team August 10, 2018 09:59 AM UTC

Hi Emil, 
 
Greetings from Syncfusion. 
 
We have checked the reported issue with “UWP RangeSlider binding not working when set as OneWay” and we are able to reproduce the reported issue at our end in Xamarin.Forms UWP platform. The fix will be available in our upcoming Volume 2 SP2 release which will be rolled out by the end of August 2018. 
 
Regards, 
Paul Anderson 



PA Paul Anderson S Syncfusion Team August 27, 2018 05:43 AM UTC

Hi Emil, 
 
We are sorry to let you know that due to control stability we have not included the fix “UWP RangeSlider binding not working when set as OneWay” in our Volume 2 SP2 release and will be available in our upcoming Volume 3 release which will be rolled out by the end of September 2018. 
 
Regards, 
Paul Anderson 



PA Paul Anderson S Syncfusion Team October 18, 2018 09:37 AM UTC

Hi Emil, 
 
Thank you for your patience. 
  
Currently, we are working and trying to resolve the issue “One-way binding is not working with RangeStart and RangeEnd properties”. We would like to get clarified on the following things: 
  
1) From the sample, we have tried to restrict RangeStart and RangeEnd in Model property setter before assigning it, using two-way binding. This worked as expected and your requirement seems to be one-way binding so please let us know the reason for using One-way binding. 
 
2) Also, please confirm us that you are restricting the property’s value in RangeChanging event with one-way binding. 
  
We will consider the above cases while fixing the issue, clarifications from your side would be helpful for us to resolve the issue by meeting all your requirements. Please check our sample with two-way binding from the following link and let us know whether it meets your requirement: 
  
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon