Ejemplo n.º 1
0
        public async Task NavigateModalAsync(string pageKey, object parameter, bool animated = true)
        {
            var page = GetPage(pageKey, parameter);

            CustomNavigationPage.SetHasNavigationBar(page, true);
            var modalNavigationPage = new CustomNavigationPage(page);
            await CurrentNavigationPage.Navigation.PushModalAsync(modalNavigationPage, animated);

            _navigationPageStack.Push(modalNavigationPage);
        }
Ejemplo n.º 2
0
        public Page SetRootPage(string rootPageKey)
        {
            var rootPage = GetPage(rootPageKey);

            _navigationPageStack.Clear();

            var mainPage = new CustomNavigationPage(rootPage);

            _navigationPageStack.Push(mainPage);
            return(mainPage);
        }