Share via


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 microsoft.xna.framework.graphics.dll)

Syntax

public event EventHandler<EventArgs> DeviceResetting

Example

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

      [C#]
      GraphicsDevice.DeviceResetting += new System.CancelEventHandler( this.GraphicsDeviceResettingEventHandler );

See Also

Reference

GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP