//TabPages
 public static List <ITabPage> tabPages(this UIItemContainer container)
 {
     if (container.isNull())
     {
         return(null);
     }
     return((from tab in container.Tabs
             from tabPage in tab.Pages
             select tabPage).toList());
 }