private void SetupTabbedNav() { var tabbedNav = new FreshMvvm.FreshTabbedNavigationContainer(); tabbedNav.AddTab <ContactListPageModel>("Contacts", null); tabbedNav.AddTab <QuoteListPageModel>("Quotes", null); MainPage = tabbedNav; }
public static void initStockMSI() { var tabs = new FreshMvvm.FreshTabbedNavigationContainer() { BarTextColor = Color.Black, BarBackgroundColor = Color.White }; tabs.AddTab <StockSEentPageModel>("Entete", "add.png"); tabs.AddTab <StockLignePageModel>("Ligne", "details.png"); Device.BeginInvokeOnMainThread(() => { Application.Current.MainPage = tabs; }); }
public static void initTabsBuyBRT() { var tabs = new FreshMvvm.FreshTabbedNavigationContainer() { BarTextColor = Color.Black, BarBackgroundColor = Color.White }; tabs.AddTab <BuyBRetEntetPageModel>("Entete", "add.png"); tabs.AddTab <BuyBCLigPageModel>("Ligne", "details.png"); tabs.AddTab <BuyDetailsPageModel>("Details", "valid.png"); Device.BeginInvokeOnMainThread(() => { Application.Current.MainPage = tabs; }); }
public App() { SetupIOC(); //var masterDetailPage = new FreshMvvm.FreshMasterDetailNavigationContainer(); //masterDetailPage.Init("Menu"); //masterDetailPage.AddPage<Modules.Home.HomePageModel>("Home"); //masterDetailPage.AddPage<Modules.Profile.ProfilePageModel>("Profile"); ////masterDetailPage.AddPage<ChallengesPageModel>("Challenges"); //masterDetailPage.AddPage<Modules.MyPicks.RaceChoicePageModel>("My Picks"); //MainPage = masterDetailPage; var tabbedPage = new FreshMvvm.FreshTabbedNavigationContainer(); tabbedPage.AddTab <Modules.Home.HomePageModel>("Home", ""); tabbedPage.AddTab <Modules.Races.RaceChoicePageModel>("Races", ""); MainPage = tabbedPage; }
public App() { InitializeComponent(); if (Device.RuntimePlatform == Device.iOS) { var tabs = new FreshMvvm.FreshTabbedNavigationContainer() { BarTextColor = Color.Black, BarBackgroundColor = Color.FromHex("#019287") }; tabs.BarTextColor = Color.FromHex("#019287"); tabs.AddTab <InformationPageModel>("Anasayfa", "icon_home.png"); tabs.AddTab <MainPageModel>("Depremler", "icon_earthquake.png"); tabs.AddTab <SettingPageModel>("Güvendeyim", "icon_safe.png"); tabs.AddTab <SettingPageModel>("Ayarlar", "icon_settings.png"); tabs.AddTab <InformationPageModel>("Hakkında", "icon_information.png"); MainPage = tabs; } else { var bottomBarPage = new CustomNavigation() { BarTextColor = Color.Black, BarBackgroundColor = Color.FromHex("#019287") }; bottomBarPage.FixedMode = true; bottomBarPage.BarTheme = BottomBarPage.BarThemeTypes.Light; bottomBarPage.BarTextColor = Color.FromHex("#019287"); bottomBarPage.AddTab <InformationPageModel>("Anasayfa", "icon_home.png"); bottomBarPage.AddTab <MainPageModel>("Depremler", "icon_earthquake.png"); bottomBarPage.AddTab <SettingPageModel>("Güvendeyim", "icon_safe.png"); bottomBarPage.AddTab <SettingPageModel>("Ayarlar", "icon_settings.png"); bottomBarPage.AddTab <InformationPageModel>("Hakkında", "icon_information.png"); MainPage = bottomBarPage; } }
public static void initBar() { if (Device.RuntimePlatform == Device.iOS) { var tabs = new FreshMvvm.FreshTabbedNavigationContainer() { BarTextColor = Color.Orange, BarBackgroundColor = Color.White }; tabs.AddTab <DocumentPageModel>("Documents", "doc.png"); tabs.AddTab <SearchPageModel>("Recherche", "search.png"); tabs.AddTab <AddDocPageModel>("", "plus.png"); tabs.AddTab <FavPageModel>("Raccourcis", "favorite.png"); tabs.AddTab <AccountPageModel>("Mon Compte", "account.png"); ////tabs.Navigation.FixedMode = true; // tabs.On<Xamarin.Forms.PlatformConfiguration.Android>().DisableSwipePaging(); Device.BeginInvokeOnMainThread(() => { App.Current.MainPage = tabs; }); } else { var bottomBarPage = new CustomNavigation() { BarTextColor = Color.Orange, BarBackgroundColor = Color.White }; bottomBarPage.FixedMode = true; bottomBarPage.BarTheme = BottomBarPage.BarThemeTypes.Light; bottomBarPage.BarTextColor = Color.Orange; bottomBarPage.AddTab <DocumentPageModel>("Documents", "doc.png"); bottomBarPage.AddTab <SearchPageModel>("Recherche", "search.png"); bottomBarPage.AddTab <AddDocPageModel>("", "plus.png"); bottomBarPage.AddTab <FavPageModel>("Raccourcis", "favorite.png"); bottomBarPage.AddTab <AccountPageModel>("Mon Compte", "account.png"); Device.BeginInvokeOnMainThread(() => { App.Current.MainPage = bottomBarPage; }); } }
public App() { InitializeComponent(); if (Device.RuntimePlatform == Device.iOS) { var tabs = new FreshMvvm.FreshTabbedNavigationContainer() { BarTextColor = Color.White, BarBackgroundColor = Color.Black }; tabs.AddTab <MainPageModel>("Home", "icon_home.png"); tabs.AddTab <EmptyPageModel>("Browse", "icon_browse.png"); tabs.AddTab <EmptyPageModel>("Search", "icon_search.png"); tabs.AddTab <EmptyPageModel>("Radio", "icon_radio.png"); tabs.AddTab <EmptyPageModel>("Your Library", "icon_library.png"); MainPage = tabs; } else { var bottomBarPage = new CustomNavigation() { BarTextColor = Color.White, BarBackgroundColor = Color.Black }; bottomBarPage.FixedMode = true; bottomBarPage.BarTheme = BottomBarPage.BarThemeTypes.DarkWithoutAlpha; bottomBarPage.BarTextColor = Color.White; bottomBarPage.AddTab <MainPageModel>("Home", "icon_home.png"); bottomBarPage.AddTab <EmptyPageModel>("Browse", "icon_browse.png"); bottomBarPage.AddTab <EmptyPageModel>("Search", "icon_search.png"); bottomBarPage.AddTab <EmptyPageModel>("Radio", "icon_radio.png"); bottomBarPage.AddTab <EmptyPageModel>("Your Library", "icon_library.png"); MainPage = bottomBarPage; } }