public App() { InitializeComponent(); //MainPage = new FreshNavigationContainer(FreshPageModelResolver.ResolvePageModel<SettingPageModel>()); var bottomBarPage = new CustomNavigation() { BackgroundColor = Color.FromRgb(1, 146, 135), }; bottomBarPage.AddTab <MainPageModel>("", "earthqauke.png"); bottomBarPage.AddTab <MessagePageModel>("", "earthqauke.png"); bottomBarPage.AddTab <InformationPageModel>("", "information.png"); MainPage = bottomBarPage; }
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 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; } }