public static async Task <QuestionWindow> CreateQuestionWindow() { QuestionWindow questionWindow = new QuestionWindow(); QuestionPage page = await QuestionPage.CreateQuestionPage(); questionWindow.QuestionFrame.Content = page; return(questionWindow); }
private async void PlayButton_Click(object sender, RoutedEventArgs e) { ((QuestionWindow)Window.GetWindow(this)).QuestionFrame .Navigate(await QuestionPage.CreateQuestionPage()); }