CanvasHeight
Introduction
Common Usage
Code Example - Setting the CanvasWidth and CanvasHeight in a MonoGame Project
// CanvasWidth and CanvasHeight are not tied to a particular
// GraphicalUiElement instance - they are static values so we
// use the GraphicalUiElement type.
GraphicalUiElement.CanvasWidth = _graphics.GraphicsDevice.Viewport.Width;
GraphicalUiElement.CanvasHeight = _graphics.GraphicsDevice.Viewport.Height;Code Example - Reacting to Resized Browser in KNI
Last updated
Was this helpful?

