Reputation: 3987
I am using Win 10 and trying to develop an universal win 8.1 app in visual studio 2015 (there was not win 10 unviersal in VS). What I want is to display backbutton in the app title bar, like other default apps do.
I found an article about this, but it's on C#, how do I implement this in JS? I tried calling SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
from default.js but my app crashes. I am very new in JS and Windows.
Upvotes: 1
Views: 573
Reputation: 21899
Windows Runtime API project into different languages with naming conventions native to the language: For JavaScript you need to camel case.
You can find a code snippet in JavaScript in the docs:
var appViewBackButtonVisibility = systemNavigationManager.appViewBackButtonVisibility;
systemNavigationManager.appViewBackButtonVisibility = appViewBackButtonVisibility;
Upvotes: 2