Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GameWindow.CurrentOrientation Property

Gets the current display orientation, which reflects the physical orientation of the phone in the user's hand.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public abstract DisplayOrientation CurrentOrientation { get; }

Property Value

The current display orientation.

Ff634526.note(en-us,XNAGameStudio.41).gifWindows Phone Specific Information
Orientation settings apply only to Windows Phone-based games.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

Show:
© 2017 Microsoft