I have been trying to detect left swipe and right swipe for stacklayout. Things in which I need help are,
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
I have done sample repo on GitHub, let me know what do you think? https://github.com/tkowalczyk/SimpleCustomGestureFrame
StackLayout
like all the other layout classes doesn't have a renderer, since the layout is completely handled by Xamarin.Forms itself without any help of native layout engines.
What you might do to achieve what you're looking for is to implement a custom renderer for a Frame
and implement your swipe gestures on it. You could then put your StackLayout
into the Frame
and you should be settled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With