private void NavView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) { if (CoreManager.needInit) { } else { if (args.IsSettingsSelected) { MainContent.Navigate(typeof(SettingsPage)); } else { NavigationViewItem item = args.SelectedItem as NavigationViewItem; switch (item.Tag) { case Tag_StartPage: MainContent.Navigate(typeof(StartPage)); break; case Tag_LaunchOptions: MainContent.Navigate(typeof(LaunchOptionsPage)); break; case Tag_Download: MainContent.Navigate(typeof(DownloadPage)); break; } } } }
private async void Grid_Loaded(object sender, RoutedEventArgs e) { //Inital setup Navigation.Init(this); MainContent.Navigate(new Intro()); //await Navigation.Navigate(new Intro()); }
private async void OnInitializationComplete(object sender, EventArgs e) { CoreManager.needInit = false; await CoreManager.InitAppAsync(); MainContent.Navigate(typeof(StartPage)); ViewModel.IsNavItemEnable = true; }
public MainPage() { this.InitializeComponent(); //BackButton.Visibility = Visibility.Collapsed; MainContent.Navigate(typeof(Home)); Loaded += (s, e) => { //write logic here HomeItem.IsSelected = true; }; }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (CoreManager.needInit == true) { MainContent.Navigate(typeof(InitializingPage)); ViewModel.IsNavItemEnable = false; } else { MainContent.Navigate(typeof(StartPage)); } }
private async void Search_Click(object sender, RoutedEventArgs e) { if (context == null) { context = new AdventureApiContext { Options = options }; } var page = new AdventureResultsPage(); page.DataContext = await context.GetResultAsync(); MainContent.Navigate(page); }
private void HomeButton_Click(object sender, RoutedEventArgs e) { if (OrderState.GetInstance().Count > 0) { MessageBoxResult m = MessageBox.Show("선택하신 모든 메뉴가 삭제됩니다.", "이전 페이지로 가시겠습니까?", MessageBoxButton.YesNo); if (m == MessageBoxResult.Yes) { OrderMenuPage order = new OrderMenuPage(); OrderState.GetInstance().Clear(); //MainContent.Navigate(new Uri("Home.xaml", UriKind.Relative)); MainContent.Navigate(new Home()); } } else { OrderState.GetInstance().Clear(); //MainContent.Navigate(new Uri("Home.xaml", UriKind.Relative)); MainContent.Navigate(new Home()); } }
private void HamburgerListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (HomeItem.IsSelected) { MainContent.Navigate(typeof(Home)); //BackButton.Visibility = Visibility.Collapsed; } else if (MoviesItem.IsSelected) { MainContent.Navigate(typeof(Movies)); //BackButton.Visibility = Visibility.Collapsed; } else if (TVShowsItem.IsSelected) { MainContent.Navigate(typeof(TVShows)); //BackButton.Visibility = Visibility.Collapsed; } if (HamburgerSplitView.IsPaneOpen) { HamburgerSplitView.IsPaneOpen = false; } }
public MainPage() { this.InitializeComponent(); // 페이지 이동 Messenger.Default.Register<MovePage>(this, (msg) => { Type type = null; switch (msg.SourcePageType) { case SourcePage.List: type = typeof(ListPage); break; case SourcePage.Calender: type = typeof(CalenderPage); break; case SourcePage.Setting: type = typeof(SettingPage); break; case SourcePage.Detail: type = typeof(DetailPage); break; } if (type == null) return; if (msg.IsTop) { MainContent.BackStack.Clear(); } MainContent.Navigate(type); checkBackButtonVisivility(); }); // 페이지 뒤로가기 Messenger.Default.Register<BackPage>(this, (msg) => { BackButtonPage_BackRequested(null, null); }); // 백버튼 이벤트 바인딩 SystemNavigationManager.GetForCurrentView().BackRequested += BackButtonPage_BackRequested; }
private void NavigateOralExamUpdate_Click(object sender, RoutedEventArgs e) { var page = new OralExamUpdate(); MainContent.Navigate(page); }
private void NavigateOralExam_Click(object sender, RoutedEventArgs e) { var page = new OralExam(_examService, _courseService, _semesterService, _enrolmentService, _studentService, _studentExamService); MainContent.Navigate(page); }
private void NavigateExams_Click(object sender, RoutedEventArgs e) { var page = new Exams(_examService, _courseService, _enrolmentService, _studentExamService, _semesterService, _exportService, _downloadFileService); MainContent.Navigate(page); }
private void NavigateEnrolments_Click(object sender, RoutedEventArgs e) { var page = new Enrolments(_enrolmentService, _courseService, _studentService); MainContent.Navigate(page); }
private void NavigateStudents_Click(object sender, RoutedEventArgs e) { var page = new Students(_studentService); MainContent.Navigate(page); }
private void MainContent_Loaded(object sender, RoutedEventArgs e) { // 초기 페이지 설정 MainContent.Navigate(typeof(ListPage)); }
private void NavigateHome_Click(object sender, RoutedEventArgs e) { MainContent.Navigate(new System.Uri("Home.xaml", UriKind.RelativeOrAbsolute)); }
private void NavigateSemesters_Click(object sender, RoutedEventArgs e) { var page = new Semesters(_semesterService); MainContent.Navigate(page); }
public MainWindow() { InitializeComponent(); MainContent.Navigate(new Pathfinder1e()); }
private void NavigateCourseInstances_Click(object sender, RoutedEventArgs e) { var page = new CourseInstances(_courseService, _semesterService); MainContent.Navigate(page); }
private void Pathfinder1e_Click(object sender, RoutedEventArgs e) { MainContent.Navigate(new Pathfinder1e()); }
private void Navigate(Type page, object args = null) { MainContent.Navigate(page, args); }
private void DnD5e_Click(object sender, RoutedEventArgs e) { MainContent.Navigate(new DnD5e()); }