Skip to content

Instantly share code, notes, and snippets.

@seksenov
Created February 27, 2016 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seksenov/89339e8ae9570b2f94ff to your computer and use it in GitHub Desktop.
Save seksenov/89339e8ae9570b2f94ff to your computer and use it in GitHub Desktop.
function fullScreen() {
console.log("fullscreenchange");
if (typeof Windows !== 'undefined') {
var view = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
if(view.IsFullScreenMode) {
console.log("Exiting WinRT Fullscreen");
view.ExitFullScreenMode();
}
else {
console.log("Entering WinRT Fullscreen");
view.TryEnterFullScreenMode();
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment