コード例 #1
0
        private Point GetLocalPoint()
        {
            var tapPoint   = _pressedGestureRecognizer.LocationInView(NativeView);
            var globalRect = NativeView.ConvertRectToView(NativeView.Bounds, UIApplication.SharedApplication.Windows.First());

            return(new Point(tapPoint.X - globalRect.X, tapPoint.Y - globalRect.Y));
        }
コード例 #2
0
ファイル: TouchEffect.cs プロジェクト: MarkoMajamaki/XamKit
        private Point GetApplicationPoint()
        {
            var tapPoint = _pressedGestureRecognizer.LocationInView(Control);

            return(new Point(tapPoint.X, tapPoint.Y));
        }