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

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