CarouselView icon indicating copy to clipboard operation
CarouselView copied to clipboard

Is there any way to cancel the swipe?

Open rodrigojuarez opened this issue 4 years ago • 3 comments

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?

rodrigojuarez avatar Jun 20 '20 05:06 rodrigojuarez

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.

GeoSaffer avatar Jul 14 '20 22:07 GeoSaffer

Have you tried using the IsSwipeEnabled property?

alexrainman avatar Oct 14 '20 15:10 alexrainman

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.

rodrigojuarez avatar Oct 14 '20 15:10 rodrigojuarez