private void Child_MaximizedChanged(object sender, EventArgs e) {
...
WindowContainerChildData initialData = (WindowContainerChildData)windowControl.InitialData;
windowControl.Left = initialData.Left;
windowControl.Top = initialData.Top;
windowControl.Width = initialData.Width;
windowControl.Height = initialData.Height;
windowControl.UpdateLayout();
windowControl.Left = this.GetRestrictedLeft(windowControl);
windowControl.Top = this.GetRestrictedTop(windowControl);
}
}
private void Child_MaximizedChanged(object sender, EventArgs e) {
...
WindowContainerChildData initialData = (WindowContainerChildData)windowControl.InitialData;
windowControl.Width = initialData.Width;
windowControl.Height = initialData.Height;
windowControl.UpdateLayout();
windowControl.Left = initialData.Left;
windowControl.Top = initialData.Top;
windowControl.Left = this.GetRestrictedLeft(windowControl);
windowControl.Top = this.GetRestrictedTop(windowControl);
}
}