CompositionTarget CompositionTarget CompositionTarget CompositionTarget Class

定義

表示您的應用程式的顯示表面。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
繼承
CompositionTargetCompositionTargetCompositionTargetCompositionTarget
衍生
實作

備註

CompositionTarget 是代表繪製您的應用程式在顯示介面的類別。CompositionTarget is a class that represents the display surface on which your application is being drawn. WPFWPF 動畫引擎提供許多建立畫面型動畫的功能。The WPFWPF 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. CompositionTarget物件讓您能夠建立自訂動畫,根據每個畫面的回呼。The CompositionTarget object provides the ability to create custom animations based on a per-frame callback.

注意

使用完整的程式碼範例CompositionTarget,請參閱 < 使用 CompositionTarget 範例For a complete code sample using CompositionTarget, see Using the CompositionTarget Sample.

屬性

Dispatcher Dispatcher Dispatcher Dispatcher

取得DispatcherDispatcherObject相關聯。Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
RootVisual RootVisual RootVisual RootVisual

取得或設定根視覺外觀CompositionTargetGets or sets the root visual of the CompositionTarget.

TransformFromDevice TransformFromDevice TransformFromDevice TransformFromDevice

取得可用來將轉譯目的地裝置到此目標的座標轉換矩陣。Gets a matrix that can be used to transform coordinates from the rendering destination device to this target.

TransformToDevice TransformToDevice TransformToDevice TransformToDevice

取得可用來將這個目標中為轉譯目的地裝置的座標轉換矩陣。Gets a matrix that can be used to transform coordinates from this target to the rendering destination device.

方法

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

判斷呼叫的執行緒是否可以存取這個DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
Dispose() Dispose() Dispose() Dispose()

處置CompositionTargetDisposes CompositionTarget.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

強制執行呼叫的執行緒可以存取這個DispatcherObjectEnforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

事件

Rendering Rendering Rendering Rendering

呈現複合樹狀中物件之前發生。Occurs just before the objects in the composition tree are rendered.

適用於