private void LayoutAnimateWindow(Rectangle rect)
{
Bounds = this.DockPanel.GetAutoHideWindowBounds(rect);
Rectangle rectClient = ClientRectangle;
if (this.DockState == DockState.DockLeftAutoHide)
this.ActivePane.Location = new Point(rectClient.Right - 2 - Measures.SplitterSize - this.ActivePane.Width, this.ActivePane.Location.Y);
else if (this.DockState == DockState.DockTopAutoHide)
this.ActivePane.Location = new Point(this.ActivePane.Location.X, rectClient.Bottom - 2 - Measures.SplitterSize - this.ActivePane.Height);
}