public Task PushPage(Xamarin.Forms.Page page, FreshBasePageModel model, bool modal = false, bool animate = true)
 {
     if (modal)
     {
         return(Navigation.PushModalAsync(CreateContainerPageSafe(page)));
     }
     return((Detail as NavigationPage).PushAsync(page, animate)); //TODO: make this better
 }
        internal Xamarin.Forms.Page CreateContainerPageSafe(Xamarin.Forms.Page page)
        {
            if (page is NavigationPage || page is MasterDetailPage || page is TabbedPage)
            {
                return(page);
            }

            return(CreateContainerPage(page));
        }
Ejemplo n.º 3
0
        public System.Threading.Tasks.Task PushPage(Xamarin.Forms.Page page, FreshBasePageModel model, bool modal = false, bool animate = true)
        {
            if (modal)
            {
                return(this.Navigation.PushModalAsync(CreateContainerPageSafe(page), Device.RuntimePlatform == Device.iOS));
            }

            return(this.CurrentPage.Navigation.PushAsync(page, animate));
        }
 protected virtual Xamarin.Forms.Page CreateContainerPage(Xamarin.Forms.Page page)
 {
     return(new NavigationPage(page));
 }