Exemple #1
0
        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();
            }
        }
Exemple #2
0
        private bool InitDrag(Control c, DragSource dragSource)
        {
            if (!base.BeginDrag(c))
            {
                return(false);
            }

            m_dragSource = dragSource;
            DropTarget.Clear();
            return(true);
        }