CompositionTarget Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Represents the display surface of a Windows Phone-based application.

Inheritance Hierarchy

System..::.Object
  System.Windows.Media..::.CompositionTarget

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

Syntax

Public NotInheritable Class CompositionTarget
public static class CompositionTarget

The CompositionTarget type exposes the following members.

Events

  Name Description
Rendering Occurs when the core Windows Phone 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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

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.

See Also

Reference

System.Windows.Media Namespace

DispatcherTimer