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