次の方法で共有


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()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

EnsurePreviousCommitCompletedAsync()

前のコミットが完了したことを確認します。

イベント

CommitNeeded

Composition オブジェクトの変更を画面上に反映するために、フレームワークで Commit を呼び出す必要がある場合に発生します。

適用対象