示例#1
0
        public MenuWrap(DagMenu menu, MenuPage carousel, Splash splash)
        {
            InitializeComponent();
            this.splash = splash;
            //lbl_datum.VerticalOptions

            Logo_Click();
            this.carousel = carousel;
            laadMenu(menu);
        }
示例#2
0
        public async void MaakCarousel(Boolean push_welcome = true)
        {
            /* self explanatory */ 
            var carouselPage = new MenuPage(this);
            int aantalChildren = Settings.menu.Count();

            for (int i = 0; i < aantalChildren; i++)
            {
                carouselPage.Children.Add(new MenuWrap(Settings.menu[i], carouselPage, this));
            }
            
            NavigationPage.SetHasBackButton(carouselPage, false);

            if(push_welcome)
            {
                await Navigation.PushAsync(new WelcomePage(this));
            }
            await Navigation.PushAsync(carouselPage);
        }