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.Graphics (in

public event EventHandler<EventArgs> 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 7, Windows Vista, Windows XP

Community Additions