protected override object CreatePages()
 {
     // Use this method to instantiate sub-tabs
     object pageSample = new SubTabPage();
     object[] pages = new Object[] { pageSample };
     return pages;
 }
        protected override object CreatePages()
        {
            // Use this method to instantiate sub-tabs
            object pageSample = new SubTabPage();

            object[] pages = new Object[] { pageSample };
            return(pages);
        }