예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public virtual void DoMouseUp(GeoMouseButtonEventArgs e)
 {
     MouseUp?.Invoke(this, e);
 }
예제 #4
0
 public virtual void DoMouseDoubleClick(GeoMouseButtonEventArgs e)
 {
     MouseDoubleClick?.Invoke(this, e);
 }