Skip to content

Instantly share code, notes, and snippets.

@seksenov
Created July 20, 2016 23:11
Show Gist options
  • Save seksenov/fe2f9daeea388e5bcaaae51d78c6f548 to your computer and use it in GitHub Desktop.
Save seksenov/fe2f9daeea388e5bcaaae51d78c6f548 to your computer and use it in GitHub Desktop.
var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
// toggle the desiredBoundsMode between useVisible (10% black border) and useCoreWindow (entire screen)
appView.setDesiredBoundsMode(appView.desiredBoundsMode === Windows.UI.ViewManagement.ApplicationViewBoundsMode.useCoreWindow ?
Windows.UI.ViewManagement.ApplicationViewBoundsMode.useVisible :
Windows.UI.ViewManagement.ApplicationViewBoundsMode.useCoreWindow);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment