Beispiel #1
0
        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);
            };
        }
Beispiel #2
0
        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));
        }