//ListViewItem 클릭시 Page 전환 기능 private void ListViewItem_Selected(object sender, RoutedEventArgs e) { if (sender == HomeItem) { var home = new Pages.Home(); pageControl.NavigationService.Navigate(home); } if (sender == CalenadarItem) { var calenadar = new Pages.Calendar(); pageControl.NavigationService.Navigate(calenadar); } if (sender == NoticeItem) { var notice = new Pages.Notice(); pageControl.NavigationService.Navigate(notice); } if (sender == BindingItem) { var binding = new Pages.Binding(); pageControl.NavigationService.Navigate(binding); } if (sender == SignOutItem) { Application.Current.Shutdown(); } }
private void SignInButton_Click(object sender, RoutedEventArgs e) { First first = new First(); Pages.Home home = new Pages.Home(); first.Show(); this.Close(); first.pageControl.NavigationService.Navigate(home); }