CompositorController 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示必须显式提交预期组合更改的合成器。
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
- 继承
- 属性
- 实现
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 关联的合成器上调用 commit。 |
Dispose() |
执行与释放或重置非托管资源关联的应用程序定义的任务。 |
EnsurePreviousCommitCompletedAsync() |
确保上一个提交已完成。 |
事件
CommitNeeded |
当框架需要调用 Commit 才能在屏幕上反映对 Composition 对象的更改时发生。 |