Forum Libraries, Components, and Plugins


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Pinch gesture in UrhoSharp


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;

        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


Best Answer


  • 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.