Exemplo n.º 1
0
        public App()
        {
            InitializeComponent();

            RootMasterDetailPage rootMasterDetailPage = new RootMasterDetailPage(new SideMenuContentPage(), new BaseNavigationPage(new HomeContentPage()));

            MainPage = rootMasterDetailPage;
        }
Exemplo n.º 2
0
        protected override void OnStart()
        {
            MainPage = new RootMasterDetailPage();

            MessagingCenter.Subscribe <MessagingCenterAlert>(this, "message", async info =>
            {
                var task = Current?.MainPage?.DisplayAlert(info.Title, info.Message, info.Cancel);

                if (task == null)
                {
                    return;
                }

                await task;
                info.OnCompleted?.Invoke();
            });
        }