monogame-platform
Installation
SKILL.md
MonoGame Platform & Window Management Guide
This skill covers platform-specific concerns: desktop window resizing and mobile orientation, back button handling, and mobile best practices. For code patterns and API signatures, see references/platform.md.
Desktop: Window Resizing
By default, MonoGame desktop windows are not resizable. To allow the user to drag the window border:
// In Initialize():
Window.AllowUserResizing = true;
Window.ClientSizeChanged += OnClientSizeChanged;
When the window is resized, the ClientSizeChanged event fires. Use it to recalculate any viewport-dependent values (camera, UI anchors, render targets):