WeifenLuo.WinFormsUI.Docking.DockContent.OnSizeChanged C# (CSharp) Method

OnSizeChanged() protected method

Overridden to avoid resize issues with nested controls
http://blogs.msdn.com/b/alejacma/archive/2008/11/20/controls-won-t-get-resized-once-the-nesting-hierarchy-of-windows-exceeds-a-certain-depth-x64.aspx http://support.microsoft.com/kb/953934
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnSizeChanged(EventArgs e)
        {
            if (DockPanel != null && DockPanel.SupportDeeplyNestedContent && IsHandleCreated)
            {
                BeginInvoke((MethodInvoker)delegate
                {
                    base.OnSizeChanged(e);
                });
            }
            else
            {
                base.OnSizeChanged(e);
            }
        }