Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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;
            //}
        }
Esempio n. 4
0
 private void ClubManagement_Tapped(object sender, TappedRoutedEventArgs e)
 {
     TheMainFrame.Navigate(typeof(ClubDetail));
 }
Esempio n. 5
0
 public MainFrame()
 {
     this.InitializeComponent();
     TheMainFrame.Navigate(typeof(Home));
 }