private void btnNext_Click(object sender, RoutedEventArgs e) { //var obj= new Question(topicId); //NavigationService.GetNavigationService(this).Navigate(obj); var obj = new DisplayQuestions();//provide topicId & topic NavigationService.GetNavigationService(this).Navigate(obj); }
private void btnNext_Click(object sender, RoutedEventArgs e) { var obj = new DisplayQuestions(GetTopicIdByTopicAndCourseName(), cmboboxTopic.SelectedItem.ToString()); NavigationService.GetNavigationService(this).Navigate(obj); //var obj = new LandingPage(cmboboxCourse.SelectedItem.ToString(), cmboboxTopic.SelectedItem.ToString()); //NavigationService.GetNavigationService(this).Navigate(obj); }