I have implemented a xaml page where user can submit his score. I have managed to get the user to the xaml page, after 2 hours of struggling but I do not know how can I navigate the user back to the game page, because I got nothing but black screen.
This is the code, I used to navigate to submit score xaml page:
var frame = new Frame();
frame.Navigate(typeof(SubmitScoreDialog));
Window.Current.Content = frame;
Window.Current.Activate();
I used the same code, to get the user back to game page, after he submited his score, but I get that black screen, nothing is drawn … I do not know how can I get this working.
Here is the code from SubmitScoreDialog.xaml.cs to get the user back to game page.
var frame = new Frame();
frame.Navigate(typeof(GamePage));
Window.Current.Content = frame;
Window.Current.Activate();
If anyone can provide me the working code for this problem, I will be very thankful.