Esempio n. 1
0
        public static async Task <QuestionWindow> CreateQuestionWindow()
        {
            QuestionWindow questionWindow = new QuestionWindow();
            QuestionPage   page           = await QuestionPage.CreateQuestionPage();

            questionWindow.QuestionFrame.Content = page;
            return(questionWindow);
        }
Esempio n. 2
0
 private async void PlayButton_Click(object sender, RoutedEventArgs e)
 {
     ((QuestionWindow)Window.GetWindow(this)).QuestionFrame
     .Navigate(await QuestionPage.CreateQuestionPage());
 }