async Task PushPageModel(BaseViewModel pageModel, object data, bool modal = false, bool animate = true)
        {
            var page = ViewModelResolver.ResolvePageModel(data, pageModel);

            await PushPageModelWithPage(page, pageModel, data, modal, animate);
        }
 public Task PushNewNavigationServiceModal(INavigationService newNavigationService, BaseViewModel basePageModels, bool animate = true)
 {
     return(PushNewNavigationServiceModal(newNavigationService, new BaseViewModel[] { basePageModels }, animate));
 }
        public Task PushNewNavigationServiceModal(TabbedNavigationContainer tabbedNavigationContainer, BaseViewModel basePageModel = null, bool animate = true)
        {
            var models = tabbedNavigationContainer.TabbedPages.Select(o => o.GetModel()).ToList();

            if (basePageModel != null)
            {
                models.Add(basePageModel);
            }
            return(PushNewNavigationServiceModal(tabbedNavigationContainer, models.ToArray(), animate));
        }
        public Task PushNewNavigationServiceModal(MasterDetailNavigationContainer masterDetailContainer, BaseViewModel basePageModel = null, bool animate = true)
        {
            var models = masterDetailContainer.Pages.Select(o =>
            {
                if (o.Value is NavigationPage)
                {
                    return(((NavigationPage)o.Value).CurrentPage.GetModel());
                }
                else
                {
                    return(o.Value.GetModel());
                }
            }).ToList();

            if (basePageModel != null)
            {
                models.Add(basePageModel);
            }

            return(PushNewNavigationServiceModal(masterDetailContainer, models.ToArray(), animate));
        }
 public PageModelCoreMethods(Page currentPage, BaseViewModel pageModel)
 {
     _currentPage      = currentPage;
     _currentPageModel = pageModel;
 }