SharedGraphicsDeviceManager.PreferredBackBufferHeight Property
Note
This property is available only when developing for Windows Phone.
Gets or sets the preferred back-buffer height.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Interop (in microsoft.xna.framework.interop.dll)
Syntax
public int PreferredBackBufferHeight { get; set; }
Property Value
The preferred back-buffer height.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | BackBufferHeight is not greater than zero. |
Remarks
If you request a back-buffer resolution that is not supported by the output device, the XNA Framework automatically selects the highest resolution supported by the output device. For example, if a graphics back buffer with a resolution of 1920 x 1080 (1080p or 1080i) is created and displayed on a device with 480i resolution, the back buffer is resized automatically to 480i.
See Also
Overview
Automatic Rotation and Scaling (Windows Phone)
Reference
SharedGraphicsDeviceManager Class
SharedGraphicsDeviceManager Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone