private void TimerMouseTrack_Tick(object sender, EventArgs e)
{
if (IsDisposed)
return;
if (this.ActivePane == null || this.ActivePane.IsActivated)
{
this._mTimerMouseTrack.Enabled = false;
return;
}
DockPane pane = this.ActivePane;
Point ptMouseInAutoHideWindow = PointToClient(MousePosition);
Point ptMouseInDockPanel = this.DockPanel.PointToClient(MousePosition);
Rectangle rectTabStrip = this.DockPanel.GetTabStripRectangle(pane.DockState);
if (!ClientRectangle.Contains(ptMouseInAutoHideWindow) && !rectTabStrip.Contains(ptMouseInDockPanel))
{
this.ActiveContent = null;
this._mTimerMouseTrack.Enabled = false;
}
}