public App() { // The root page of your application var navContainer = new FreshNavigationContainer(FreshPageModelResolver.ResolvePageModel<PinLoginPageModel>()); navContainer.BarTextColor = Color.White; MainPage = navContainer; }
protected override void OnResume() { // set to today when app resumes var page = FreshMvvm.FreshPageModelResolver.ResolvePageModel <PrayerPageModel>(DateTime.Now.ToString("yyyyMMdd HH:mm")); MainPage = new FreshMvvm.FreshNavigationContainer(page); }
public App() { InitializeComponent(); SetUpIOC(); var rootPage = FreshMvvm.FreshPageModelResolver.ResolvePageModel <PageModels.LoginPageModel>(); MainPage = new FreshMvvm.FreshNavigationContainer(rootPage); }
public App() { Bootstrap(); var page = FreshPageModelResolver.ResolvePageModel<StoreSelectionPageModel>(); var navigation = new FreshNavigationContainer(page); MainPage = navigation; }
public App() { InitializeComponent(); var homePage = FreshMvvm.FreshPageModelResolver.ResolvePageModel <ToDoPageModel>(); var navConatiner = new FreshMvvm.FreshNavigationContainer(homePage); MainPage = navConatiner; }
public async Task <string> PushPageModelWithNewNavigation <T> (object data, bool animate = true) where T : FreshBasePageModel { var page = FreshPageModelResolver.ResolvePageModel <T>(data); var navigationName = Guid.NewGuid().ToString(); var naviationContainer = new FreshNavigationContainer(page, navigationName); await PushNewNavigationServiceModal(naviationContainer, page.GetModel(), animate); return(navigationName); }
public App() { BlobCache.ApplicationName = "simsoft"; BlobCache.EnsureInitialized(); InitializeComponent(); SetUpIOC(); var rootPage = FreshMvvm.FreshPageModelResolver.ResolvePageModel <PageModels.LoginPageModel>(); MainPage = new FreshMvvm.FreshNavigationContainer(rootPage); //Navigation.initTabsSellBL(); }
public App () { FreshIOC.Container.Register<IDatabaseService, DatabaseService> (); FreshIOC.Container.Register<IStorageService> (DependencyService.Get<IStorageService>()); var page = FreshPageModelResolver.ResolvePageModel<MenuPageModel> (); var basicNavContainer = new FreshNavigationContainer (page); MainPage = basicNavContainer; }
public App() { GetDeviceStats(); SetIOC(); Xam.Behaviors.Infrastructure.Init(); var page = FreshMvvm.FreshPageModelResolver.ResolvePageModel <PrayerPageModel>(DateTime.Now.ToString("yyyyMMdd HH:mm")); MainPage = new FreshMvvm.FreshNavigationContainer(page); }
public App() { InitializeComponent(); SetupIOC(); var firstPage = FreshMvvm.FreshPageModelResolver.ResolvePageModel <QuestionsListPageModel>(); var navPage = new FreshMvvm.FreshNavigationContainer(firstPage); MainPage = navPage; }
private void SetupSingleNav() { // FreshMvvmBinding //var contactList = FreshMvvm.FreshPageModelResolver.ResolvePageModel<ContactListPageModel>(); //var navContainer = new FreshMvvm.FreshNavigationContainer(contactList); //MainPage = navContainer; var mainMenu = FreshMvvm.FreshPageModelResolver.ResolvePageModel <MenuPageModel>(); var navContainer = new FreshMvvm.FreshNavigationContainer(mainMenu); MainPage = navContainer; }
public void LoadMultipleNavigation() { var masterDetailsMultiple = new MasterDetailPage (); //generic master detail page //we setup the first navigation container with ContactList var contactListPage = FreshPageModelResolver.ResolvePageModel<ContactListPageModel> (); contactListPage.Title = "Contact List"; //we setup the first navigation container with name MasterPageArea var masterPageArea = new FreshNavigationContainer (contactListPage, "MasterPageArea"); masterPageArea.Title = "Menu"; masterDetailsMultiple.Master = masterPageArea; //set the first navigation container to the Master //we setup the second navigation container with the QuoteList var quoteListPage = FreshPageModelResolver.ResolvePageModel<QuoteListPageModel> (); quoteListPage.Title = "Quote List"; //we setup the second navigation container with name DetailPageArea var detailPageArea = new FreshNavigationContainer (quoteListPage, "DetailPageArea"); masterDetailsMultiple.Detail = detailPageArea; //set the second navigation container to the Detail MainPage = masterDetailsMultiple; }
public async Task LoadBasicNav () { var page = await FreshPageModelResolver.ResolvePageModel<MainMenuPageModel> (); var basicNavContainer = new FreshNavigationContainer (page); MainPage = basicNavContainer; }