Octgn.Play.Gui.CardControl.LeftButtonDownOverImage C# (CSharp) Method

LeftButtonDownOverImage() protected method

protected LeftButtonDownOverImage ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void
        protected void LeftButtonDownOverImage(object sender, MouseEventArgs e)
        {
            e.Handled = true;

            //if (_isDragging) return;
            _isOverCount = false;
            _isDragging = false;
            if (Card == null) return;
            //if (this.Card.Anchored) return;
            if (!Card.Selected) Selection.Clear();
            _mousePt = e.GetPosition(this);
            Window window = Window.GetWindow(this);
            if (window != null)
                _mouseWindowPt = TranslatePoint(_mousePt, (UIElement)window.Content);
            _dragSource = Keyboard.Modifiers == ModifierKeys.Shift ? DragSource.Target : DragSource.Card;
            if (Card.Anchored && _dragSource == DragSource.Card)
                _dragSource = DragSource.None;
            CaptureMouse();
        }