0

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!

Community
  • 1
  • 1
user2335065
  • 2,337
  • 3
  • 31
  • 54
  • use `SystemNavigationManager` http://stackoverflow.com/questions/31832309/handling-back-navigationn-windows-10-uwp/35875842#35875842 – Vineet Choudhary Mar 08 '16 at 19:10

1 Answers1

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):

https://onedrive.live.com/redir?resid=A818A6F7EAABB150!451776&authkey=!ABr-Lk3FsiRAelY&ithint=file%2czip

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: enter image description here

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