PresentationParameters.DisplayOrientation Property

Gets or sets the orientation of the display. The default value is DisplayOrientation.Default, which means orientation is determined automatically from your BackBufferWidth and BackBufferHeight.

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

Syntax

public DisplayOrientation DisplayOrientation { get; set; }

Property Value

The orientation of the display.

Remarks

Ff634531.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

PresentationParameters Class
PresentationParameters Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP