Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Raises the Deactivated event. Override this method to add code to handle when the game loses focus.
Syntax
'Declaration
Protected Overridable Sub OnDeactivated ( _
sender As Object, _
args As EventArgs _
)
protected virtual void OnDeactivated (
Object sender,
EventArgs args
)
protected:
virtual void OnDeactivated(
Object sender,
EventArgs args
)
Parameters
- sender
Type: Object
The Game. - args
Type: EventArgs
Arguments for the Deactivated event.
Remarks
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.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Game Class
Game Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone