Pinch gesture in UrhoSharp

Hello,

has anyone succeeded in detecting pinch-to-zoom gestures in UrhoSharp? I have followed the approach outlined here, but the eventhandler simply never gets called.

My Code looks as follow:

public class PinchToZoomContainer : ContentView {

        public PinchToZoomContainer() {
            var pinchGesture = new PinchGestureRecognizer();
            pinchGesture.PinchUpdated += OnPinchUpdated;
            GestureRecognizers.Add(pinchGesture);
        }

        void OnPinchUpdated(object sender, PinchGestureUpdatedEventArgs e) {            
            // never called :(
        }

...

    urhoSurface = new UrhoSurface();
    urhoSurface.VerticalOptions = LayoutOptions.FillAndExpand;

            Content = new Grid {
                Padding = new Thickness (20),
                Children = {
                    new PinchToZoomContainer {
                        Content = urhoSurface
                    }
                }
            };

thanks,
Chris

Best Answer

Answers

  • aseelabuaseelabu USMember

    @ChristopherStaerkel Can we use the Touch Events From xamarin Forms in UrhoSharp ? and what kinds of Events ? I need the listed Events:
    • Touch event on specific shape.
    • Swipe.
    • Pinch Gesture For Zooming feature as it is a main feature.
    • Long Touch.

    I would be very Grateful if you could help me or send me something to start with ,,,, Thank You :)

  • sachinJsachinJ INMember ✭✭

    I also want pinch gesture in TouchCanvasView, anybody having idea how to do?

  • Hello Guys,

    Someone have the solution for the same. I have also the pinch gesture query.

Sign In or Register to comment.