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); } }
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); }
public async Task ModalGoBack(bool animated = false) { await NavigatingToAsync(NavigationMode.Back, null, ModalCurrentPage); await NavigablePageFacadeInternal.PopModalAsync(animated); }
public async Task GoBack(bool animated = true) { await NavigatingToAsync(NavigationMode.Back, null, CurrentPage); await NavigablePageFacadeInternal.PopAsync(animated); }