Пример #1
0
        private void loadTabbedPage()
        {
            var tabbedNavigation = new FreshTabbedNavigationContainer();

            tabbedNavigation.On <Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
            tabbedNavigation.BackgroundColor = Color.FromHex("#F9F9F9");
            tabbedNavigation.AddTab <MainHomePageModel>("", "callblue.png");
            tabbedNavigation.AddTab <HistoryListPageModel>("", "history.png");
            App.Current.MainPage = tabbedNavigation;
        }
Пример #2
0
        public App()
        {
            InitializeComponent();
            FlowListView.Init();

            FreshIOC.Container.Register <IGamesService, GamesService>();
            FreshIOC.Container.Register <IPlayersService, PlayersService>();

            var tabbedNavigation = new FreshTabbedNavigationContainer();

            tabbedNavigation.On <Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
            tabbedNavigation.AddTab <GamesListPageModel>("Upcoming Games", null);
            tabbedNavigation.AddTab <PlayersListPageModel>("Players", null);
            tabbedNavigation.AddTab <PlayersCollectionPageModel>("Players Collection", null);
            tabbedNavigation.HeightRequest = 5;
            MainPage = tabbedNavigation;
        }