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

            m_dragSource = dragSource;
            DropTarget.Clear();
            return(true);
        }
예제 #3
0
 public DragHandler(DockPanel dockPanel)
 {
     m_dockPanel  = dockPanel;
     m_dropTarget = new DropTarget();
 }