protected override void OnDragStart(Point ptMouse, Point ptRelativeMouse) { if (IsFloatingAllowed) { Manager.Drag(this, HelperFunc.PointToScreenWithoutFlowDirection(this, ptMouse), ptRelativeMouse); } base.OnDragStart(ptMouse, ptRelativeMouse); }
protected override void OnDragStart(Point ptMouse, Point ptRelativeMouse) { if (DockableStyle != DockableStyle.None && (State == DockableContentState.Docked || State == DockableContentState.Document || State == DockableContentState.DockableWindow) && !Manager.DragPaneServices.IsDragging) { Manager.Drag(this, HelperFunc.PointToScreenWithoutFlowDirection(this, ptMouse), ptRelativeMouse); } base.OnDragStart(ptMouse, ptRelativeMouse); }