Search code examples
c#windows-store-appswindows-8.1screen-orientation

Force the App to become on Portrait View when clicking a Button


On a certain ButtonClick event, I need the app to turn to Portrait View even if the user is holding it in the Landscape View. The ApplicationView only has a GetForCurrentView().Orientation string, not a Set. How can this be possible?


Solution

  • It turns out that it is impossible to Set the Application to a certain ApplicationView, Portrait or Landscape without physically turning the device. I tried to trick the user by rotating my image (by animating it in Blend) to look like it's in a Portrait View. The user will then return the device in his hands.