public MenuPage(AndroidRootPage root) { this.root = root; InitializeComponent(); //BindingContext = new ContentPageViewModel(); NavView.NavigationItemSelected += async(sender, e) => { this.root.IsPresented = false; //await Task.Delay(225); await this.root.NavigateAsync(e.Index); }; }
public App() { // The root page of your application switch (Device.RuntimePlatform) { case Device.Android: MainPage = new AndroidRootPage(); break; case Device.iOS: MainPage = new NavigationPage(new iOSRootPage()); break; //case TargetPlatform.Windows: //case TargetPlatform.WinPhone: default: throw new NotImplementedException(); } MainPage.SetValue(NavigationPage.BarTextColorProperty, Color.White); //CrossLocalNotifications.Current.Show("Hello!", "This is a notification!", 101, DateTime.Now.AddSeconds(5)); }