CompositionTarget 類別

定義

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

備註

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 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 DispatcherObject)
RootVisual

取得或設定 CompositionTarget 的根視覺。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.

方法

CheckAccess()

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

(繼承來源 DispatcherObject)
Dispose()

處置 CompositionTargetDisposes CompositionTarget.

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

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

(繼承來源 Object)
VerifyAccess()

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

(繼承來源 DispatcherObject)

事件

Rendering

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

適用於