{"id":790,"date":"2017-12-29T10:12:47","date_gmt":"2017-12-29T10:12:47","guid":{"rendered":"http:\/\/www.netexl.com\/blog\/?p=790"},"modified":"2017-12-29T10:12:47","modified_gmt":"2017-12-29T10:12:47","slug":"force-windows-10-store-app-to-open-in-full-screen-mode","status":"publish","type":"post","link":"https:\/\/www.netexl.com\/blog\/force-windows-10-store-app-to-open-in-full-screen-mode\/","title":{"rendered":"Force Windows 10 Store App to Open in Full Screen Mode"},"content":{"rendered":"<p>The java script code for achieving this:<\/p>\n<pre class=\"lang:default decode:true \">(function () {\r\n    \"use strict\";\r\n\r\n    var app = WinJS.Application;\r\n    var activation = Windows.ApplicationModel.Activation;\r\n\r\n    var ViewManagement = Windows.UI.ViewManagement;\r\n    var ApplicationViewWindowingMode = ViewManagement.ApplicationViewWindowingMode;\r\n    var ApplicationView = ViewManagement.ApplicationView;\r\n\r\n    app.onactivated = function (args) {\r\n        if (args.detail.kind === activation.ActivationKind.launch) {\r\n            if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {\r\n                \/\/ TODO: This application has been newly launched. Initialize your application here.\r\n            } else {\r\n                \/\/ TODO: This application was suspended and then terminated.\r\n                \/\/ To create a smooth user experience, restore application state here so that it looks like the app never stopped running.\r\n            }\r\n            args.setPromise(WinJS.UI.processAll());\r\n            ApplicationView.preferredLaunchWindowingMode = ApplicationViewWindowingMode.fullScreen;\r\n        }\r\n    };\r\n\r\n    app.oncheckpoint = function (args) {\r\n        \/\/ TODO: This application is about to be suspended. Save any state that needs to persist across suspensions here.\r\n        \/\/ You might use the WinJS.Application.sessionState object, which is automatically saved and restored across suspension.\r\n        \/\/ If you need to complete an asynchronous operation before your application is suspended, call args.setPromise().\r\n    };\r\n\r\n    app.start();\r\n\r\n})();<\/pre>\n<p>Reference:<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/34551471\/fullscreen-mode-windows-10-app-js\" target=\"_blank\">https:\/\/stackoverflow.com\/questions\/34551471\/fullscreen-mode-windows-10-app-js<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The java script code for achieving this: (function () { &#8220;use strict&#8221;; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; var ViewManagement = Windows.UI.ViewManagement; var ApplicationViewWindowingMode = ViewManagement.ApplicationViewWindowingMode; var ApplicationView = ViewManagement.ApplicationView; app.onactivated = function (args) { if (args.detail.kind === activation.ActivationKind.launch) { if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) { \/\/ TODO: This application has been newly launched. Initialize your application here. } else { \/\/ TODO: This application was suspended and then terminated. \/\/ To create a smooth user experience, restore application state here so that it looks like the app never stopped running. } args.setPromise(WinJS.UI.processAll()); ApplicationView.preferredLaunchWindowingMode = ApplicationViewWindowingMode.fullScreen; } }; app.oncheckpoint = function (args) { \/\/ TODO: This application is about to be suspended. Save any state that needs to persist across suspensions here. \/\/ You might use the WinJS.Application.sessionState object, which is automatically saved and restored across suspension. \/\/ If you need to complete an asynchronous operation before your application[&#8230;]<\/p>\n","protected":false},"author":5,"featured_media":746,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-store-app"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/comments?post=790"}],"version-history":[{"count":1,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/790\/revisions"}],"predecessor-version":[{"id":791,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/790\/revisions\/791"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media\/746"}],"wp:attachment":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media?parent=790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/categories?post=790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/tags?post=790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}