Ejemplo n.º 1
0
		public App ()
		{
			var mainPage = new CodedPage ();
			var navigationPage = new NavigationPage (mainPage);
			mainPage.ItemSelected += async (sender, e) => {
				var detailPage = new DetailPage {
					BindingContext = e,
				};
				await navigationPage.PushAsync (detailPage);
			};

			// The root page of your application
			MainPage = navigationPage;
			MainPage.BindingContext = ViewModel;
		}
Ejemplo n.º 2
0
        public App()
        {
            var mainPage       = new CodedPage();
            var navigationPage = new NavigationPage(mainPage);

            mainPage.ItemSelected += async(sender, e) => {
                var detailPage = new DetailPage {
                    BindingContext = e,
                };
                await navigationPage.PushAsync(detailPage);
            };

            // The root page of your application
            MainPage = navigationPage;
            MainPage.BindingContext = ViewModel;
        }