This topic has not yet been rated - Rate this topic

Game.OnActivated Method

Raises the Activated event. Override this method to add code to handle when the game gains focus.

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

protected virtual void OnActivated (
         Object sender,
         EventArgs args
)

Parameters

sender
The Game.
args
Arguments for the Activated event.
The OnActivated method allows derived classes to handle the Activated event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Xbox 360, Windows XP SP2, Windows Vista, Zune
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.