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):

Installs
15
GitHub Stars
2
First Seen
May 20, 2026
monogame-platform — alca259/monogame-skills