示例#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;
            }
        }
示例#2
0
 private void OnBackRequested(object sender, BackRequestedEventArgs e)
 {
     if (TheMainFrame.CanGoBack)
     {
         e.Handled = true;
         TheMainFrame.GoBack();
     }
 }
示例#3
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);
     }
 }
示例#4
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;
            //}
        }
示例#5
0
 private void ClubManagement_Tapped(object sender, TappedRoutedEventArgs e)
 {
     TheMainFrame.Navigate(typeof(ClubDetail));
 }
示例#6
0
 public MainFrame()
 {
     this.InitializeComponent();
     TheMainFrame.Navigate(typeof(Home));
 }