public PatternPage() { InitializeComponent(); NavigationPage.SetHasBackButton(this, false); NavigationPage.SetHasNavigationBar(this, false); tabPage = this.FindByName <BaseCarouselPage>("BaseCarouselPage"); tabPage.CurrentPageChanged += CurrentPageChanged; }
/* * 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; } }