public static ITabPage tabPage(this UIItemContainer container, string name) { foreach (var tabPage in container.tabPages()) { if (tabPage.Name == name) { return(tabPage); } } return(null); }