共用方式為


CompositorController 類別

定義

表示必須明確認可預定組合變更的撰寫器。

public ref class CompositorController sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CompositorController final : IClosable
[Windows.Foundation.Metadata.Activatable(393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CompositorController : System.IDisposable
Public NotInheritable Class CompositorController
Implements IDisposable
繼承
Object Platform::Object IInspectable CompositorController
屬性
實作

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

備註

CompositorController 可讓您建立及控制撰寫器,您必須明確認可預定的撰寫變更。 這與從呼叫 ElementCompositionPreview.GetElementVisual 所傳回的視覺效果取得的撰寫器相反,其認可會隱含發生,而不需要直接呼叫。

建構函式

CompositorController()

初始化 CompositorController 類別的新實例。

屬性

Compositor

取得與此組合控制器相關聯的撰寫器。

方法

Close()

釋放 CompositorController 所使用的系統資源。

Commit()

呼叫與此 CompositorController 相關聯的撰寫器認可。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

EnsurePreviousCommitCompletedAsync()

確定先前的認可已完成。

事件

CommitNeeded

發生于架構需要呼叫 Commit,才能在螢幕上反映 Composition 物件的變更。

適用於