I am making a Windows 10 hosted Webb app following this. Now when the user press the back button on the phone, it seems that it just quit the app. I want the app just go back to the previous page.How can I do that? I have read this but this is for C#. How about the case for Web App? Thanks!
Asked
Active
Viewed 384 times
0
-
use `SystemNavigationManager` http://stackoverflow.com/questions/31832309/handling-back-navigationn-windows-10-uwp/35875842#35875842 – Vineet Choudhary Mar 08 '16 at 19:10
1 Answers
0
Since Windows 10 UWP apps are being shipped without any templates, there is a GitHub project which contains many code examples to add to your Windows 10 application. Here's the project which implements a back button and multiple navigation features utilizing controls. It works on both Windows 10 Mobile and Desktop.
Link to project which implements SplitView (Back button and hamburger):
Link to original project (Didn't compile in VS 2015, so I fixed it in the app linked above)
https://github.com/Windows-XAML/201505-MVA/tree/master/SplitView/SplitView/SplitView-Template10
Screenshot:

Levi Fuller
- 13,631
- 4
- 38
- 44
-
Thanks, but I mean the bak button the the phone. When user click on the back button on the phone now, it would just quit the app, but not go back to the previous page of the app. – user2335065 Jul 25 '15 at 03:39