Slider - only fires if user ends touching the control?

mramra USMember ✭✭

Hello,

is there any way to fires the ValueChanged event of the Slider Control only if the user let it go?

Thanks.

Best Answer

Answers

  • mramra USMember ✭✭

    Thanks, it works!

    But the Continous property must set to false so the event only sent if the slider is finally updated.

    public class TSliderRenderer : SliderRenderer { protected override void OnElementChanged(ElementChangedEventArgs<Slider> e) { base.OnElementChanged(e); foreach (var sub in this.NativeView.Subviews) { if (sub is UISlider) { (sub as UISlider).Continuous = false; } } } }

  • adamkempadamkemp USInsider, Developer Group Leader mod

    Oh, sorry, I read your comment wrong. Glad it helped, though.

Sign In or Register to comment.