Ejemplo n.º 1
0
            private void TimerMouseTrack_Tick(object sender, EventArgs e)
            {
                if (IsDisposed)
                {
                    return;
                }

                if (ActivePane == null || ActivePane.IsActivated)
                {
                    m_timerMouseTrack.Enabled = false;
                    return;
                }

                DockPane pane = ActivePane;
                Point    ptMouseInAutoHideWindow = PointToClient(Control.MousePosition);
                Point    ptMouseInDockPanel      = DockPanel.PointToClient(Control.MousePosition);

                Rectangle rectTabStrip = DockPanel.GetTabStripRectangle(pane.DockState);

                if (!ClientRectangle.Contains(ptMouseInAutoHideWindow) && !rectTabStrip.Contains(ptMouseInDockPanel))
                {
                    ActiveContent             = null;
                    m_timerMouseTrack.Enabled = false;
                }
            }