// Entry point from LayoutEngine internal override bool LayoutCore(IArrangedElement container, LayoutEventArgs args) { #if DEBUG if (CompModSwitches.FlowLayout.TraceInfo) { Debug.WriteLine("FlowLayout::Layout(" + "container=" + container.ToString() + ", " + "displayRect=" + container.DisplayRectangle.ToString() + ", " + "args=" + args.ToString() + ")"); } Debug.Indent(); #endif // ScrollableControl will first try to get the layoutbounds from the derived control when // trying to figure out if ScrollBars should be added. CommonProperties.SetLayoutBounds(container, xLayout(container, container.DisplayRectangle, /* measureOnly = */ false)); #if DEBUG Debug.Unindent(); #endif return(CommonProperties.GetAutoSize(container)); }
internal override bool LayoutCore(IArrangedElement container, LayoutEventArgs args) { CommonProperties.SetLayoutBounds(container, this.xLayout(container, container.DisplayRectangle, false)); return(CommonProperties.GetAutoSize(container)); }