How to detect Left swipe and Right swipe for Stacklayout in Xamarin.Forms?

Femil Shajin picture Femil Shajin · Nov 20, 2014 · Viewed 11.8k times · Source

I have been trying to detect left swipe and right swipe for stacklayout. Things in which I need help are,

  1. Creating a stacklayout renderer to add swipe Gesture.
  2. How to detect user has swiped left or right.

Please provide a solution which works on cross platforms.

Providing an example for stacklayout renderer will be really helpful to acheive the swipe functionality in xamarin.forms

Answer

Tomasz Kowalczyk picture Tomasz Kowalczyk · Nov 20, 2014

I have done sample repo on GitHub, let me know what do you think? https://github.com/tkowalczyk/SimpleCustomGestureFrame