Search code examples
windows-phone-8winjs

Disable action center WinJS


I'm developping a WinJS application on Windows Phone 8 and I want to "disable" the action bar. I just want when I touch the top of the screen it doesn't show the action bar. I saw several games doing that : Image example

How can I do that with HTML or WinJS ?


Solution

  • You need to do two things:

    1. Hide the status bar via StatusBar.hideAsync method
    2. Disable system overlays via the ApplicationView.suppressSystemOverlays property.

    You need to do both things to minimize the Action Center popup thing.