/// <summary> /// Measures the bounds of box and children, recursively. /// </summary> /// <param name="g">Device context to draw</param> public void PerformLayout(Graphics g) { ArgChecker.AssertArgNotNull(g, "g"); if (_root != null) { _root.Location = _location; _root.Size = new SizeF(_maxSize.Width > 0 ? _maxSize.Width : 9999, _maxSize.Height); _actualSize = new SizeF(0, 0); _root.MeasureBounds(g); } }