private void PaneSplitter_BeginDrag(Point ptSplitter) { m_splitterLocation = DragControl.Parent.PointToScreen(ptSplitter); Point ptMouse = StartMousePosition; m_mouseOffset.X = m_splitterLocation.X - ptMouse.X; m_mouseOffset.Y = m_splitterLocation.Y - ptMouse.Y; Rectangle rect = GetPaneSplitterDragRectangle(); SplitterOutline.Show(rect); }
protected override void OnDragging() { if (Source == DragSource.Content || Source == DragSource.Pane || Source == DragSource.FloatWindow) { TestDrop(); } else if (Source == DragSource.PaneSplitter) { SplitterOutline.Show(GetPaneSplitterDragRectangle()); } else if (Source == DragSource.DockWindowSplitter) { SplitterOutline.Show(GetWindowSplitterDragRectangle()); } else if (Source == DragSource.AutoHideWindowSplitter) { SplitterOutline.Show(GetWindowSplitterDragRectangle()); } }