protected override void OnDragging() { DropTarget.Clear(true); if (m_dragSource == DragSource.Content) { Content_OnDragging(); } else if (m_dragSource == DragSource.Pane) { Pane_OnDragging(); } else if (m_dragSource == DragSource.PaneSplitter) { PaneSplitter_OnDragging(); } else if (m_dragSource == DragSource.DockWindowSplitter) { DockWindowSplitter_OnDragging(); } else if (m_dragSource == DragSource.AutoHideWindowSplitter) { AutoHideWindowSplitter_OnDragging(); } else if (m_dragSource == DragSource.FloatWindow) { FloatWindow_OnDragging(); } }
private bool InitDrag(Control c, DragSource dragSource) { if (!base.BeginDrag(c)) { return(false); } m_dragSource = dragSource; DropTarget.Clear(); return(true); }