public bool OnTouch(Android.Views.View v, MotionEvent e)
 {
     sfMapExt.PointX = e.GetX();
     sfMapExt.PointY = e.GetY();
     sfMapExt.AddMarker();
     return(true);
 }
예제 #2
0
        private void Control_PointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
        {
            var position = e.GetCurrentPoint(this).Position;

            sfMapExt.PointX = position.X;
            sfMapExt.PointY = position.Y;
            sfMapExt.AddMarker();
        }
예제 #3
0
        public override void TouchesBegan(NSSet touches, UIEvent evt)
        {
            var touch = touches.AnyObject as UITouch;

            sfMapExt.PointX = touch.LocationInView(this).X;
            sfMapExt.PointY = touch.LocationInView(this).Y;
            sfMapExt.AddMarker();
            base.TouchesBegan(touches, evt);
        }