简体   繁体   中英

How to hide/remove Cordova Windows 10 app back button?

The windows 10 app generated by cordova shows a back button on extreme top left, when I run the app in desktop. When user taps the button, the application behaves like a web. This option is really annoying.

Is there anyway that I can hide or remove the back button? Looking for solution preferably in Javascript, C# can be optional.

Is there anyway that I can hide or remove the back button? Looking for solution preferably in Javascript, C# can be optional.

If you are refering to the back button on Title bar, you can use the following codes in cordova to disable the back button:

if (cordova.platformId = "windows")
{
    var currentView = Windows.UI.Core.SystemNavigationManager.getForCurrentView();
    currentView.appViewBackButtonVisibility = Windows.UI.Core.AppViewBackButtonVisibility.collapsed;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM