public bool OnTouch(Android.Views.View v, MotionEvent e) { sfMapExt.PointX = e.GetX(); sfMapExt.PointY = e.GetY(); sfMapExt.AddMarker(); return(true); }
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(); }
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); }