public TabController getTabBar() { // tab 1: Add Item to Wardrobe var vcAddItem = new AddItemViewController(); NavigationBarController nbcAddItem = new NavigationBarController(); UINavigationController ncAddItem = nbcAddItem.GetNavigationController(vcAddItem); vcAddItem.Title = "Add Wardrobe Item"; vcAddItem.View.BackgroundColor = UIColor.Green; // tab 2: View Reports var vcMyReports = new MyReportsViewController(); NavigationBarController nbcMyReports = new NavigationBarController(); UINavigationController ncMyReports = nbcMyReports.GetNavigationController(vcMyReports); vcMyReports.Title = "My Reports"; vcMyReports.View.BackgroundColor = UIColor.Orange; TabController tabController = new TabController(); tabController.AddChildViewController(ncAddItem); tabController.AddChildViewController(ncMyReports); return(tabController); }
//---------------------- Previous Button Click Action ---------------- private void PrevButtonClickAction(object sender, EventArgs e) { var prevView = new AddItemViewController(); NavigationController.PushViewController(prevView, true); }