示例#1
0
        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch (MenuListView.SelectedIndex)
            {
            case 0:
                MainFram.Navigate(typeof(NewsPage));
                break;

            case 1:
                MainFram.Navigate(typeof(BBSPage));
                break;

            default:
                break;
            }
        }
示例#2
0
 private void Admin_OnClick(object sender, RoutedEventArgs e)
 {
     MainFram.Navigate(typeof(Admin));
 }
示例#3
0
 private void Renew_OnClick(object sender, RoutedEventArgs e)
 {
     MainFram.Navigate(typeof(LogIn));
 }
示例#4
0
 private void Subcribe_OnClick(object sender, RoutedEventArgs e)
 {
     MainFram.Navigate(typeof(SubscriptionPag));
 }
示例#5
0
 private void Home_OnClick(object sender, RoutedEventArgs e)
 {
     MainFram.Navigate(typeof(HomePage));
 }
示例#6
0
 public MainPage()
 {
     this.InitializeComponent();
     MainFram.Navigate(typeof(HomePage));
 }