Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GraphicsDevice.DeviceLost Event

Occurs when a GraphicsDevice is about to be lost (for example, immediately before a reset).

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

public event EventHandler DeviceLost

To add an event handler that listens for DeviceLost, use the following C# code.

      [C#]
      GraphicsDevice.DeviceLost += new System.EventHandler( this.GraphicsDeviceLostEventHandler );
    

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2015 Microsoft