GraphicsDevice.DeviceResetting Event

Occurs when a GraphicsDevice is resetting, allowing the application to cancel the default handling of the reset.

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

public event EventHandler DeviceResetting

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

      GraphicsDevice.DeviceResetting += new System.CancelEventHandler( this.GraphicsDeviceResettingEventHandler );

Xbox 360, Windows XP SP2, Windows Vista

Community Additions