CompositionTarget Class
TOC
Collapse the table of content
Expand the table of content

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.

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

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

No code example is currently available or this language may not be supported.

The CompositionTarget type exposes the following members.

  NameDescription
Public eventStatic memberRenderingOccurs when the core Windows Phone rendering process renders a frame.
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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

Show:
© 2017 Microsoft