public static Tree treeView(this UIItemContainer container, string name) { foreach (var treeView in container.treeViews()) { if (treeView.Name == name) { return(treeView); } } return(null); }