static GUIDumpData DumpLayout(Control control) { // Find the root control in the hierarchy. var rootControl = control; while (rootControl.Parent != null) rootControl = rootControl.Parent; return BuildDumpTree(rootControl); }