CompositionTarget Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents the display surface of a Silverlight-based application.
Inheritance Hierarchy
System.Object
System.Windows.Media.CompositionTarget
Namespace: System.Windows.Media
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public NotInheritable Class CompositionTarget
public static class CompositionTarget
The CompositionTarget type exposes the following members.
Events
Name | Description | |
---|---|---|
Rendering | Occurs when the core Silverlight rendering process renders a frame. |
Top
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.