Hi, I am trying to implement range slider for windows rt. I have added a range slider with the following in xaml <editors:SfRangeSlider Visibility="Visible" x:Name="sliderFlash" Height="80" Width="350" VerticalAlignment="Center" Minimum="0" Maximum="100" ShowRange="True" RangeStart="40" RangeEnd="70" Foreground="#FF46A4DA" ShowCustomLabels="True" LabelPlacement="BottomRight" RangeChanged="sliderValueChanged"/> And in .cs I am trying to get the range end value with the following code
} but every time it gives A first chance exception of type 'System.NullReferenceException' occurred in Range Slider Test.exe An exception of type 'System.NullReferenceException' occurred in Range Slider Test.exe but was not handled in user code Additional information: Object reference not set to an instance of an object.
VVVignesh V Syncfusion Team May 23, 2014 10:15 AM UTC
We would like to inform that the reported issue occurs, because
the control is not loaded initially. SfRangeSlider is loaded after ValueChanged
event, that makes the instance empty. We have modified your sample that tries
to meet your reuirement of getting RangeEnd value in ValueChanged event.