Exemple #1
0
        public async Task NavigateModalAsync(Page page, object parameter = null, bool animated = false)
        {
            if (page != null)
            {
                await NavigatingToAsync(NavigationMode.New, parameter, page);

                await NavigablePageFacadeInternal.PushModalAsync(page, parameter, animated);
            }
        }
Exemple #2
0
        public async Task <bool> NavigateAsync(Page page, object parameter = null, bool animated = true)
        {
            if (App.MainPage == null)
            {
                return(false);
            }

            if (page == null)
            {
                throw new ArgumentNullException(nameof(page));
            }

            await NavigatingToAsync(NavigationMode.New, parameter, page);

            await NavigablePageFacadeInternal.PushAsync(page, parameter, animated);

            return(true);
        }
Exemple #3
0
        public async Task ModalGoBack(bool animated = false)
        {
            await NavigatingToAsync(NavigationMode.Back, null, ModalCurrentPage);

            await NavigablePageFacadeInternal.PopModalAsync(animated);
        }
Exemple #4
0
        public async Task GoBack(bool animated = true)
        {
            await NavigatingToAsync(NavigationMode.Back, null, CurrentPage);

            await NavigablePageFacadeInternal.PopAsync(animated);
        }