Example #1
0
        public PatternPage()
        {
            InitializeComponent();

            NavigationPage.SetHasBackButton(this, false);
            NavigationPage.SetHasNavigationBar(this, false);

            tabPage = this.FindByName <BaseCarouselPage>("BaseCarouselPage");

            tabPage.CurrentPageChanged += CurrentPageChanged;
        }
Example #2
0
        /*
         * Navigate to the page selected from the menu drawer
         */
        private void listView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            tabPage = this.FindByName <BaseCarouselPage>("BaseCarouselPage");
            Debug.WriteLine(e.SelectedItem.GetType().ToString());
            MasterPageItem mt = (MasterPageItem)e.SelectedItem;
            string         t  = mt.Title;

            if (t == "Modes")
            {
                tabPage.CurrentPage = tabPage.Children[0];
                this.IsPresented    = false;
            }
            if (t == "Settings")
            {
                tabPage.CurrentPage = tabPage.Children[1];
                this.IsPresented    = false;
            }
        }