Force Windows Store App to Full Screen Mode

In order to launch windows store app to full screen mode, check out the code here. Once app is launched in full screen mode, it can be resized by user by using the resize option which is available in all app windows and can not be removed. For windows pc, we can capture window resize event and try to enter full screen again which in effect doesn’t let user resize the application window.

The java script code for achieving this:

var page = WinJS.UI.Pages.define("/index.html", {
    ready: function (element, options) {
        // Add event for window resize event
        window.addEventListener("resize", onResizeView);
    }

});

function onResizeView() {
    // Whenever window is resized, enter it to full screen mode
    var ViewManagement = Windows.UI.ViewManagement;
    var ApplicationView = ViewManagement.ApplicationView;
    var view = ApplicationView.getForCurrentView();
    view.tryEnterFullScreenMode();
}

 


Leave A Comment

Your email address will not be published.