Beispiel #1
0
        public void SetupTabbedPage()
        {
            var tabbedpage = new TabbedNavigationContainer();

            tabbedpage.On <Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);

            tabbedpage.AddTab <MasterMenuViewModel>("master", "icon");
            tabbedpage.AddTab <LoginViewModel>("login", "icon");
            tabbedpage.AddTab <MainViewModel>("main", "icon");
            MainPage = tabbedpage;
        }
Beispiel #2
0
        public App()
        {
            ViewModelBase.Init();
            //ServiceLocator.Instance.Add<ILogService, Logger>();

            InitializeComponent();

            FreshTinyIoCContainer.Current.Register <IUserDialogs>(UserDialogs.Instance);
            FreshTinyIoCContainer.Current.Register <IBeerDrinkinClient>(new BeerDrinkinClient());

            var mainPage = new TabbedNavigationContainer();

            mainPage.AddTab <DiscoverPageModel>("Discover", "tabbar_search");
            mainPage.AddTab <MyBeersPageModel>("My Beers", "tabbar_mybeers");
            mainPage.AddTab <WishListPageModel>("Wish List", "tabbar_wishlist");
            mainPage.AddTab <ProfilePageModel>("Profile", "tabbar_profile");

            MainPage = mainPage;
        }