public App() { current = this; InitializeComponent(); ViewModelBase.Init(); #if !DEBUG Microsoft.AppCenter.AppCenter.Start("uwp=c9066a4a-7a4d-4b2c-9146-66736339398b;" + "android=0da69ace-2d11-498f-8e7f-e706b7c31a05" + "ios=508b163d-4fd0-4185-8302-e733e6504d3f", typeof(Analytics), typeof(Distribute), typeof(Crashes)); #endif // The root page of your application switch (Device.RuntimePlatform) { case Device.Android: MainPage = new RootPageAndroid(); break; case Device.iOS: MainPage = new ConferenceNavigationPage(new RootPageiOS()); break; case Device.UWP: MainPage = new RootPageWindows(); break; default: throw new NotImplementedException(); } }
public App() { current = this; InitializeComponent(); ViewModelBase.Init(); // The root page of your application switch (Device.RuntimePlatform) { case Device.Android: MainPage = new RootPageAndroid(); break; case Device.iOS: MainPage = new ConferenceNavigationPage(new RootPageiOS()); break; case Device.UWP: case Device.WinPhone: MainPage = new RootPageWindows(); break; default: throw new NotImplementedException(); } }
public MenuPage(RootPageAndroid root) { this.root = root; InitializeComponent(); NavView.NavigationItemSelected += async(sender, e) => { this.root.IsPresented = false; await Task.Delay(225); await this.root.NavigateAsync(e.Index); }; }