public App()
 {
     // The root page of your application
     var navContainer = new FreshNavigationContainer(FreshPageModelResolver.ResolvePageModel<PinLoginPageModel>());
     navContainer.BarTextColor = Color.White;
     MainPage = navContainer;
 }
예제 #2
0
파일: App.cs 프로젝트: populvuh/DailyPrayer
        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);
        }
예제 #3
0
        public App()
        {
            InitializeComponent();
            SetUpIOC();
            var rootPage = FreshMvvm.FreshPageModelResolver.ResolvePageModel <PageModels.LoginPageModel>();

            MainPage = new FreshMvvm.FreshNavigationContainer(rootPage);
        }
예제 #4
0
        public App()
        {
            Bootstrap();

            var page = FreshPageModelResolver.ResolvePageModel<StoreSelectionPageModel>();
            var navigation = new FreshNavigationContainer(page);
            MainPage = navigation;
        }
예제 #5
0
        public App()
        {
            InitializeComponent();

            var homePage     = FreshMvvm.FreshPageModelResolver.ResolvePageModel <ToDoPageModel>();
            var navConatiner = new FreshMvvm.FreshNavigationContainer(homePage);

            MainPage = navConatiner;
        }
예제 #6
0
        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);
        }
예제 #7
0
        public App()
        {
            BlobCache.ApplicationName = "simsoft";
            BlobCache.EnsureInitialized();
            InitializeComponent();
            SetUpIOC();
            var rootPage = FreshMvvm.FreshPageModelResolver.ResolvePageModel <PageModels.LoginPageModel>();

            MainPage = new FreshMvvm.FreshNavigationContainer(rootPage);
            //Navigation.initTabsSellBL();
        }
예제 #8
0
		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; 


		}
예제 #9
0
파일: App.cs 프로젝트: populvuh/DailyPrayer
        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);
        }
예제 #10
0
        public App()
        {
            InitializeComponent();

            SetupIOC();

            var firstPage = FreshMvvm.FreshPageModelResolver.ResolvePageModel <QuestionsListPageModel>();

            var navPage = new FreshMvvm.FreshNavigationContainer(firstPage);

            MainPage = navPage;
        }
예제 #11
0
        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;
        }
예제 #13
0
 public async Task LoadBasicNav ()
 {
     var page = await FreshPageModelResolver.ResolvePageModel<MainMenuPageModel> ();
     var basicNavContainer = new FreshNavigationContainer (page);
     MainPage = basicNavContainer;
 }