Whenever our phone physically changes orientation, the GameWindow.OrientationChanged event gets raised.
So the code to check the CurrentOrientation property in your game would be like following:
|
1 2 3 4 5 6 7 |
if (Window.CurrentOrientation == DisplayOrientation.Portrait) { // add your code here.. } |
Incoming search terms:
- xna windows currentorientation change ios
Filed under: Windows Phone 7
Like this post? Subscribe to my RSS feed and get loads more!




Leave a Reply