internal void IntoDragAction(DragItem dragItem, bool _isInvokeByFloatWnd = false) { DockManager.UpdateWindowZOrder(); _dragItem = dragItem; //被浮动窗口调用则不需要调用BeforeDrag() if (_isInvokeByFloatWnd) { IsDragging = true; if (_dragWnd == null) { _dragWnd = _dragItem.RelativeObj as BaseFloatWindow; } } else { BeforeDrag(); } //初始化最外层的_rootTarget _rootSize = DockManager.LayoutRootPanel.RootGroupPanel.TransformActualSizeToAncestor(); if (!_isInvokeByFloatWnd && _dragWnd is DocumentGroupWindow) { _dragWnd.Recreate(); } }
private void _DestroyDragItem() { _dragItem.Dispose(); _dragItem = null; DragTarget = null; }