GameTimer.SuppressFrame Method

Note

This method is available only when developing for Windows Phone.

Supresses all remaining FrameAction, Update and Draw events from firing this frame for all GameTimers.

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

Syntax

public static void SuppressFrame ()

Remarks

Calling SuppressFrame on any GameTimer will cause all FrameAction, Update and Draw events that haven't been executed yet to be suppressed, even if they belong to a different GameTimer.

Note

If you have multiple event handlers associated with a single event, you should be aware that SuppressFrame does not stop the remaining event handlers from being called, only remaining events (and their associated handlers). This behavior is defined by the way .NET calls event handlers: once an event has been triggered, all handlers associated with that event are automatically called.

See Also

Reference

GameTimer Class
GameTimer Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone