void setupMasterDetailPage(Taco t) { if (splitPage == null) { MainPage = new ContentPage(); splitPage = new MasterDetailPage (); splitPage.Master = tacoNavigationPage; } TacoDetailPage tacoPage = new TacoDetailPage (t); tacoPage.Title = ""; NavigationPage detailNavigation = new NavigationPage (tacoPage); detailNavigation.Title = "Taco"; detailNavigation.BarBackgroundColor = Color.FromHex ("#15293c"); detailNavigation.BarTextColor = Color.White; splitPage.Detail = detailNavigation; splitPage.Title = "Taco"; MainPage = splitPage; }
private void updateTacos(Taco[] tacos) { Debug.WriteLine("found " + tacos.Length + " tacos"); this.Title = tacos.Length + " tacos"; listView.ItemsSource = tacos; }