Forum Xamarin.Forms

PanGestureRecognizer not working in Android (Xamarin Forms)

JohnDBJohnDB USMember ✭✭
edited January 2017 in Xamarin.Forms

I recently created a custom control that contains two child controls within a Grid. I added a PanGestureRecognizer to the custom control to move the child controls through the Y axis when the PanUpdated event fires. This works fine in iOS, but Android does not fire the PanUpdated event.

To investigate I looked at the example of how to do pan gestures here:

This example works on Android, but as soon as you change the Image inside the PanContainer to something else, say a Grid containing some other controls, then PanUpdated stops firing. As I mentioned this all works well on iOS.

I'm currently using XF

Can anyone offer any help or guidance on how to get the pan gesture working in Android?


Sign In or Register to comment.