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)

public DisplayOrientation DisplayOrientation { get; set; }

Property Value

The orientation of the display.

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

ADD
Show: