protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
if (e.Button == MouseButtons.Left &&
this.DockPane.DockPanel.AllowEndUserDocking &&
this.DockPane.AllowDockDragAndDrop &&
!DockHelper.IsDockStateAutoHide(this.DockPane.DockState) &&
this.DockPane.ActiveContent != null)
this.DockPane.DockPanel.BeginDrag(this.DockPane);
}