แก้ไข

แชร์ผ่าน


CompositionTarget Class

Definition

Represents the display surface of your application.

public ref class CompositionTarget abstract : System::Windows::Threading::DispatcherObject, IDisposable
public abstract class CompositionTarget : System.Windows.Threading.DispatcherObject, IDisposable
type CompositionTarget = class
    inherit DispatcherObject
    interface IDisposable
Public MustInherit Class CompositionTarget
Inherits DispatcherObject
Implements IDisposable
Inheritance
CompositionTarget
Derived
Implements

Remarks

CompositionTarget is a class that represents the display surface on which your application is being drawn. The WPF animation engine provides many features for creating frame-based animation. However, there are application scenarios in which you need control over rendering on a per frame basis. The CompositionTarget object provides the ability to create custom animations based on a per-frame callback.

Properties

Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
RootVisual

Gets or sets the root visual of the CompositionTarget.

TransformFromDevice

Gets a matrix that can be used to transform coordinates from the rendering destination device to this target.

TransformToDevice

Gets a matrix that can be used to transform coordinates from this target to the rendering destination device.

Methods

CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Dispose()

Disposes CompositionTarget.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Events

Rendering

Occurs just before the objects in the composition tree are rendered.

Applies to