private bool IsContainerAutoScaling (Control c) { ContainerControl cc = FindContainer (c); return (cc != null) && cc.IsAutoScaling; }