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);
            };
        }
Example #2
0
        public App()
        {
            current = this;

            InitializeComponent();
            ViewModelBase.Init();
            switch (Device.RuntimePlatform)
            {
            case Device.Android:
                MainPage = new RootPageAndroid();
                break;

            case Device.iOS:
                MainPage = new ASENavigationPage(new RootPageiOS());
                break;

            default:
                throw new NotImplementedException();
            }
        }