コード例 #1
0
ファイル: DragHandler.cs プロジェクト: Kmiiloberrio2/fwk_12
        private void PaneSplitter_BeginDrag(Point ptSplitter)
        {
            m_splitterLocation = DragControl.Parent.PointToScreen(ptSplitter);
            Point ptMouse = StartMousePosition;

            m_mouseOffset.X = m_splitterLocation.X - ptMouse.X;
            m_mouseOffset.Y = m_splitterLocation.Y - ptMouse.Y;

            Rectangle rect = GetPaneSplitterDragRectangle();

            SplitterOutline.Show(rect);
        }
コード例 #2
0
ファイル: DragHandler.cs プロジェクト: Kmiiloberrio2/fwk_12
 protected override void OnDragging()
 {
     if (Source == DragSource.Content ||
         Source == DragSource.Pane ||
         Source == DragSource.FloatWindow)
     {
         TestDrop();
     }
     else if (Source == DragSource.PaneSplitter)
     {
         SplitterOutline.Show(GetPaneSplitterDragRectangle());
     }
     else if (Source == DragSource.DockWindowSplitter)
     {
         SplitterOutline.Show(GetWindowSplitterDragRectangle());
     }
     else if (Source == DragSource.AutoHideWindowSplitter)
     {
         SplitterOutline.Show(GetWindowSplitterDragRectangle());
     }
 }