private void NavView_Navigate(NavigationViewItem item) { switch (item.Name) { case "OnlineClubs": TheMainFrame.Navigate(typeof(OnlineClubs)); TheMainFrame.Translation = new System.Numerics.Vector3(0, 0, 250); break; case "Browse": break; case "IUServices": TheMainFrame.Navigate(typeof(Home)); TheMainFrame.Translation = new System.Numerics.Vector3(0, 0, 250); break; case "Shop": TheMainFrame.Navigate(typeof(StoreView)); TheMainFrame.Translation = new System.Numerics.Vector3(0, 300, 0); break; default: TheMainFrame.Navigate(typeof(Home)); break; } }
private void MainFrameNavigation_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) { if (args.IsSettingsSelected) { TheMainFrame.Navigate(typeof(SettingsPage)); } else { NavigationViewItem item = args.SelectedItem as NavigationViewItem; NavView_Navigate(item); } }
private void NavView_Navigate(NavigationViewItem item) { switch (item.Name) { case "IUShop": TheMainFrame.Navigate(typeof(IUShopping)); break; } switch (item.Name) { case "News": TheMainFrame.Navigate(typeof(Test)); break; } //switch (item.Name) //{ // case "SchoolResources": // TheMainFrame.Navigate(typeof(StuffDetail)); // break; //} }
private void ClubManagement_Tapped(object sender, TappedRoutedEventArgs e) { TheMainFrame.Navigate(typeof(ClubDetail)); }
public MainFrame() { this.InitializeComponent(); TheMainFrame.Navigate(typeof(Home)); }