コード例 #1
0
ファイル: QuestionWindow.xaml.cs プロジェクト: chimarry/Quiz
        public static async Task <QuestionWindow> CreateQuestionWindow()
        {
            QuestionWindow questionWindow = new QuestionWindow();
            QuestionPage   page           = await QuestionPage.CreateQuestionPage();

            questionWindow.QuestionFrame.Content = page;
            return(questionWindow);
        }
コード例 #2
0
ファイル: ResultsPage.xaml.cs プロジェクト: chimarry/Quiz
 private async void PlayButton_Click(object sender, RoutedEventArgs e)
 {
     ((QuestionWindow)Window.GetWindow(this)).QuestionFrame
     .Navigate(await QuestionPage.CreateQuestionPage());
 }