Search code examples
windows-phone-7microsoft-metrowindows-phone-8windows-store-apps

Design my Windows Store App in Portrait even when the device is tilted to Landscape


I am a Windows Phone developer and just started with Windows Store Apps. I want my app to only work in Portrait Mode even when the device is tilted to Landscape (I don't want the app to change to landscape mode). How can I set my Windows Store app up to accomplish this?


Solution

  • In the app manifest, you can set the supported rotations:

    enter image description here

    That said you may have an issue in certification as a result, since snapped mode is a requirement. Snapped mode applies to landscape orientation, so it would seem to be something you wouldn't need to do, but as this thread suggests, you may have an issue. A possible workaround would be to provide a nominal landscape view that simply says the app runs only in portrait mode, but I would heavily document your rationale for supporting only portrait in the "Notes to Testers" when you submit your app to the store.