Beispiel #1
0
        // --------------------------------------------------------------------------
        //
        // IOnGestureListener METHODS
        //
        // --------------------------------------------------------------------------

        //
        // When a single tap up has been detected, tell the Xamarin.Forms control
        // to dispatch its tap event.
        //
        public bool OnSingleTapUp(MotionEvent e)
        {
            formsElement.OnTapEvent((int)e.GetX(), (int)e.GetY());
            return(true);
        }
Beispiel #2
0
        //
        // Respond to taps.
        //
        public void TapHandler(UITapGestureRecognizer tgr)
        {
            CGPoint touchPoint = tgr.LocationInView(nativeElement);

            formsElement.OnTapEvent((int)touchPoint.X, (int)touchPoint.Y);
        }