示例#1
0
        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;
        }
示例#2
0
		private void updateTacos(Taco[] tacos)
		{
			Debug.WriteLine("found " + tacos.Length + " tacos");
			this.Title = tacos.Length + " tacos";
			listView.ItemsSource = tacos;
		}