Game.LoadContent Method

Called when graphics resources need to be loaded. Override this method to load any game-specific graphics resources.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)


protected virtual void LoadContent ()


This method is called by Initialize. Also, it is called any time the game content needs to be reloaded, such as when the DeviceReset event occurs. You should not access the GraphicsDevice until LoadContent is called.

LoadContent is called by Initialize, and before Draw. During the time the code for this method is executing, the user will experience a delay before the initial game screen appears.

See Also


Game Class
Game Members
Microsoft.Xna.Framework Namespace


Xbox 360, Windows 7, Windows Vista, Windows XP