Ejemplo n.º 1
0
        public static void LoadMasterDetail()
        {
            masterDetailNav = new FreshMasterDetailNavigationContainer();
            masterDetailNav.Measure(130, 130, MeasureFlags.IncludeMargins);
            // masterDetailNav.Icon = "hamburger.png";
            //masterDetailNav.Title = "eNotes";

            masterDetailNav.Init("iApps Solutions", "hamburger.png");
            masterDetailNav.AddPage <PurchasePageModel>("PurChase Notes", null);
            masterDetailNav.AddPage <ExpensesPageModel>("Expenses Notes", null);
            masterDetailNav.AddPage <SettingsPageModel>("Settings", null);

            var mainpage = FreshPageModelResolver.ResolvePageModel <MenuPageModel>();

            masterDetailNav.Detail = new FreshNavigationContainer(mainpage, "NotesListPageNav");
            //var mainpageq = FreshPageModelResolver.ResolvePageModel<MasterPageModel>();
            // masterDetailNav.Master =  mainpageq;
            App.Current.MainPage = masterDetailNav;
        }