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:
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!