Resolution and Resizing the Game Window
Introduction
Default Behavior
public class Game1 : Game
{
GraphicsDeviceManager _graphics;
GumService GumUi => GumService.Default;
public Game1()
{
_graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
IsMouseVisible = true;
// This sets the initial size:
// If not explicitly set, then size values
// default to 800x480 on desktop platforms
_graphics.PreferredBackBufferWidth = 800;
_graphics.PreferredBackBufferHeight = 600;
}
protected override void Initialize()
{
// Internally this will initialize using the viewport values
GumUi.Initialize(this, DefaultVisualsVersion.V3);
...Default Resize Behavior

Handling Resizing with No Zoom

Handling Resizing with Zoom

RenderTargets, Scaling, and Offsets
FrameworkElement PopupRoot and ModalRoot
Last updated
Was this helpful?

