예제 #1
0
 public ImageGestureRenderer()
 {
     this.AddGestureRecognizer(new UILongPressGestureRecognizer((longPress) =>
     {
         if (longPress.State == UIGestureRecognizerState.Began)
         {
             Image.InicioLongPress(Image, EventArgs.Empty);
         }
         if (longPress.State == UIGestureRecognizerState.Ended)
         {
             CGPoint point        = longPress.LocationInView(Window);
             Controls.Point Point = new Controls.Point {
                 X = point.X, Y = point.Y
             };
             Image.FinLongPress(Image, Point);
         }
         if (longPress.State == UIGestureRecognizerState.Changed)
         {
             CGPoint point        = longPress.LocationInView(Window);
             Controls.Point Point = new Controls.Point {
                 X = point.X, Y = point.Y
             };
             Image.CambioLongPress(Image, Point);
         }
     }));
 }