CompositionTarget Class

Represents the display surface of a Silverlight-based application.


Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

public static class CompositionTarget

The CompositionTarget type exposes the following members.

Public eventStatic memberSupported by Silverlight for Windows PhoneRenderingOccurs when the core Silverlight rendering process renders a frame.

The purpose of this class is as the host of the Rendering event, which can be used as a per-frame callback for complex layout or composition scenarios. Handling CompositionTarget.Rendering and working with a DispatcherTimer are two possible ways to handle game loops or other lower level timing tasks.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Ajouts de la communauté