Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents the display surface of a Silverlight-based application.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public NotInheritable Class CompositionTarget
public static class CompositionTarget
The CompositionTarget type exposes the following members.
|Rendering||Occurs 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.