Пример #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()
 {
     m_dropTarget = new DropTarget();
 }
Пример #4
0
 public DragHandler(DockPanel dockPanel)
 {
     m_dockPanel  = dockPanel;
     m_dropTarget = new DropTarget();
 }