public override void DoMouseDown(GeoMouseButtonEventArgs e) { if (e.LeftButton == System.Windows.Input.MouseButtonState.Pressed && !_preventDrag) { _dragStart = e.Location; _source = e.Map.MapFrame.ViewBound; _isDragging = true; } base.DoMouseDown(e); }
public override void DoMouseUp(GeoMouseButtonEventArgs e) { if (_isDragging) { _isDragging = false; _preventDrag = true; e.Map.MapFrame.ResetViewExtent(); _preventDrag = false; Map.IsBusy = false; BusySet = false; } _dragStart = Point.Empty; _source = Rectangle.Empty; base.DoMouseUp(e); }
public virtual void DoMouseUp(GeoMouseButtonEventArgs e) { MouseUp?.Invoke(this, e); }
public virtual void DoMouseDoubleClick(GeoMouseButtonEventArgs e) { MouseDoubleClick?.Invoke(this, e); }