alexrainman / CarouselView

CarouselView control for Xamarin Forms
MIT License
436 stars 178 forks source link

Is there any way to cancel the swipe? #574

Open rodrigojuarez opened 4 years ago

rodrigojuarez commented 4 years ago

I want to do some validation when the user starts to swipe and then have the possibility to cancel the swipe. Is there any way I can do that?

GeoSaffer commented 4 years ago

I am looking for the same/similar functionality.

To only allow progressing forward in the carousel when conditions are met.

Please, this would be a great help.

alexrainman commented 3 years ago

Have you tried using the IsSwipeEnabled property?

rodrigojuarez commented 3 years ago

Yes, but if I set it to false, I can't do the validation when the user starts to swipe (because the user can't swipe), and if it's set to true, I don't see how to cancel the swipe if the validation fail. I guess I'm looking for some sort of hook or event, SwipeStarted that can be cancelled.