FrameworkDispatcher.Update Method

Updates the status of various framework components (such as power state and media), and raises related events.

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

public static void Update ()

In an application that implements the Game class, the FrameworkDispatcher.Update method is called automatically whenever Game.Update is processed. The FrameworkDispatcher.Update method triggers event processing in the XNA Framework.

If you use the XNA Framework in an application that does not implement the Game class—for example, a Windows Phone application that uses the Silverlight application model—you must call the FrameworkDispatcher.Update method yourself to dispatch messages that are in the XNA Framework message queue. You can do this once per frame in a timer loop, or you can implement the IApplicationService interface with a DispatcherTimer and a Tick event handler.

To do this, you can create an application service, and then register the service with the application.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions