Game.OnDeactivated Method
XNA Game Studio Express
Raises the Deactivated event. Override this method to add code to handle when the game loses focus.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)
protected virtual void OnDeactivated ( Object sender, EventArgs args )
Parameters
- sender
- The Game.
- args
- Arguments for the Deactivated event.
The OnDeactivated method allows derived classes to handle the Deactivated event without attaching a delegate. This is the preferred technique for handling the event in a derived class.