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)

Syntax

public abstract DisplayOrientation CurrentOrientation { get; }

Property Value

The current display orientation.

Remarks

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

See Also

Overview

Automatic Rotation and Scaling (Windows Phone)

Reference

GameWindow Class
GameWindow Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP