public override bool ShouldReceiveTouch(UIGestureRecognizer recognizer, UITouch touch) { var location = touch.LocationInView(touch.View); _boxView.OnTapped(location.X, location.Y); return(false); }
public bool OnTouch(Android.Views.View v, MotionEvent e) { var percentageX = e.GetX() / v.Width; var percentageY = e.GetY() / v.Height; var elementX = percentageX * Element.Width; var elementY = percentageY * Element.Height; _boxView.OnTapped(elementX, elementY); return(true); }