Exemplo n.º 1
0
 void UpdateChildrenOrderIndex()
 {
     for (var i = 0; i < TabViewItems.Length; i++)
     {
         int originalIndex;
         if (int.TryParse(TabViewItems[i].ViewController.Identifier, out originalIndex))
         {
             var page = PageController.InternalChildren[originalIndex];
             TabbedPage.SetIndex(page as Page, i);
         }
     }
 }
Exemplo n.º 2
0
 void UpdateChildrenOrderIndex(UIViewController[] viewControllers)
 {
     for (var i = 0; i < viewControllers.Length; i++)
     {
         var originalIndex = -1;
         if (int.TryParse(viewControllers[i].TabBarItem.Tag.ToString(), out originalIndex))
         {
             var page = (Page)Tabbed.InternalChildren[originalIndex];
             TabbedPage.SetIndex(page, i);
         }
     }
 }