Ejemplo n.º 1
0
        protected override void OnParentMouseUp(object sender, MouseButtonEventArgs e)
        {
            if (_isMouseMove || IsDraging)
            {
                //do nothing
            }
            //else if (ClickCount < 2) // don't remove 这会影响EditControlLayer double click 编辑弹出框
            //{
            SetCurrentMousePoint(e);

            if (LayerContainer.HeaderIsHitted())    // Column 全選 IsHeader(e.Source)
            {
                _screenDataRowIndex = 0;
                _startPoint         = new Point(LayerContainer.GetMousePosition(true).X, 0);
                _currentPoint       = new Point(_startPoint.X, GetItemsSourceCount() * Interval);
                SetInitalDrawLocation();
            }
            MeasureDragingArea(_screenDataRowIndex);
            e.Handled = true;
            InvalidateVisual();
            //}

            IsDraging    = false;
            _isMouseMove = false;

            //xe.Handled = !AxisYConverter.IsInViewRagne(_currentPoint.Y);
            OnRangeSelected();
        }