private void StopDrag() { _dragTimer.Stop(); _activeSplitter.HideOverlay(); var difference = new Point(_initialContact.X - Cursor.Position.X, _initialContact.Y - Cursor.Position.Y); _activeSplitter.Move(difference); _isDragging = false; }
private void StopDrag() { _dragTimer.Stop(); _activeSplitter.HideOverlay(); if (CursorInDockPanel()) { _activeSplitter.Move(SplitterDifference()); } _isDragging = false; }