This project is read-only.

OnBackKeyPress In GamePage.XAML.

Topics: Windows Phone 8
Apr 22, 2014 at 3:12 AM
Hello! My Game have a mainpage.xaml.
User has been click button navigation to GamePage.xaml play game.
But the user click back button in device.
The game is close. If i code OnBackKeyPress{ NavigationService.GoBack();} user can't play game again!

Please help me! Thanks you
Apr 22, 2014 at 6:34 AM
'user can't play game again' - not sure what this means. Another user had this same use case and got it working. Did you search the forum to find a solution?
Apr 23, 2014 at 4:21 AM
Thanks for reply!

i were search in forum but i don't see the same solution.

My mean is:

Open app display MainPage,xaml -> User click button to navigate to GamePage.xaml play new game -> Then if user click back button. The GamePage.xaml navigate go back MainPage.xaml.

In MainPage.xaml use click button to navigate to GamePage.xaml again play new game

But if navigate to GamePage.xaml again. Nothing is displayed. The game is not create new.

sorry my english is not good. Thanks you so much!
Apr 24, 2014 at 9:29 PM
May 2, 2014 at 10:57 PM
Hi ,

Can I know How did you use Cocos 2d-Xna with XAML support . Which version of Coocos2d you are using , send me a link of Cocos2D version you are using.

Regards,