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; } }
private void Admin_OnClick(object sender, RoutedEventArgs e) { MainFram.Navigate(typeof(Admin)); }
private void Renew_OnClick(object sender, RoutedEventArgs e) { MainFram.Navigate(typeof(LogIn)); }
private void Subcribe_OnClick(object sender, RoutedEventArgs e) { MainFram.Navigate(typeof(SubscriptionPag)); }
private void Home_OnClick(object sender, RoutedEventArgs e) { MainFram.Navigate(typeof(HomePage)); }
public MainPage() { this.InitializeComponent(); MainFram.Navigate(typeof(HomePage)); }