Compositor 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
管理應用程式與系統撰寫器進程之間的會話。
Compositor 類別會為應用程式建立 Compositor 的實例,此實例可用於 Windows.UI.Composition 命名空間中橫跨視覺層、效果系統和動畫系統的各種類型處理站。 Compositor 類別也會管理從處理站建立的物件存留期。
public ref class Compositor sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class Compositor final : IClosable
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(131072, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
class Compositor final : IClosable
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class Compositor : System.IDisposable
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(131072, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public sealed class Compositor : System.IDisposable
Public NotInheritable Class Compositor
Implements IDisposable
- 繼承
- 屬性
- 實作
Windows 需求
| 裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
| API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
Compositor 會隱含地同步處理對相關聯視覺效果所做的變更,以確保它們會以交易方式套用。
如需詳細資訊,請參閱 組合 UI 概觀 和 組合視覺化樹狀結構概觀 。
您必須在具有 CoreDispatcher 的執行緒上建立 Compositor 的新實例。
版本歷程記錄
| Windows 版本 | SDK 版本 | 已新增值 |
|---|---|---|
| 1607 | 14393 | CreateAmbientLight |
| 1607 | 14393 | CreateAnimationGroup |
| 1607 | 14393 | CreateBackdropBrush |
| 1607 | 14393 | CreateDistantLight |
| 1607 | 14393 | CreateDropShadow |
| 1607 | 14393 | CreateImplicitAnimationCollection |
| 1607 | 14393 | CreateLayerVisual |
| 1607 | 14393 | CreateMaskBrush |
| 1607 | 14393 | CreateNineGridBrush |
| 1607 | 14393 | CreatePointLight |
| 1607 | 14393 | CreateSpotLight |
| 1607 | 14393 | CreateStepEasingFunction |
| 1607 | 14393 | CreateStepEasingFunction (Int32) |
| 1703 | 15063 | CreateHostBackdropBrush |
| 1709 | 16299 | CreateColorGradientStop |
| 1709 | 16299 | CreateColorGradientStop (Single,Color) |
| 1709 | 16299 | CreateLinearGradientBrush |
| 1709 | 16299 | CreateSpringScalarAnimation |
| 1709 | 16299 | CreateSpringVector2Animation |
| 1709 | 16299 | CreateSpringVector3Animation |
| 1803 | 17134 | 註解 |
| 1803 | 17134 | CreateBounceScalarAnimation |
| 1803 | 17134 | CreateBounceVector2Animation |
| 1803 | 17134 | CreateBounceVector3Animation |
| 1803 | 17134 | CreateContainerShape |
| 1803 | 17134 | CreateEllipseGeometry |
| 1803 | 17134 | CreateLineGeometry |
| 1803 | 17134 | CreatePathGeometry |
| 1803 | 17134 | CreatePathGeometry (CompositionPath) |
| 1803 | 17134 | CreatePathKeyFrameAnimation |
| 1803 | 17134 | CreateRectangleGeometry |
| 1803 | 17134 | CreateRoundedRectangleGeometry |
| 1803 | 17134 | CreateShapeVisual |
| 1803 | 17134 | CreateSpriteShape |
| 1803 | 17134 | CreateSpriteShape (CompositionGeometry) |
| 1803 | 17134 | CreateViewBox |
| 1803 | 17134 | GlobalPlaybackRate |
| 1803 | 17134 | MaxGlobalPlaybackRate |
| 1803 | 17134 | MinGlobalPlaybackRate |
| 1803 | 17134 | RequestCommitAsync |
| 1809 | 17763 | CreateBooleanKeyFrameAnimation |
| 1809 | 17763 | CreateGeometricClip |
| 1809 | 17763 | CreateGeometricClip (CompositionGeometry) |
| 1809 | 17763 | CreateRedirectVisual |
| 1809 | 17763 | CreateRedirectVisual (Visual) |
| 1903 | 18362 | CreateProjectedShadow |
| 1903 | 18362 | CreateProjectedShadowCaster |
| 1903 | 18362 | CreateProjectedShadowReceiver |
| 1903 | 18362 | CreateRadialGradientBrush |
| 1903 | 18362 | CreateVisualSurface |
建構函式
| Compositor() |
建立 Compositor的實例。 |
屬性
| Comment |
取得或設定要與 Compositor 建立關聯的字串。 |
| DefaultGraphicsDevice |
取得預設圖形裝置。 |
| DispatcherQueue |
取得這個撰寫器的發送器佇列。 |
| GlobalPlaybackRate |
取得或設定動畫播放此撰寫器所建立之所有 KeyFrame 動畫的速率。 |
| MaxGlobalPlaybackRate |
取得這個 compositor 所建立之所有 KeyFrame 動畫允許的最大播放速率。 |
| MinGlobalPlaybackRate |
取得這個撰寫器所建立之所有 KeyFrame 動畫的最小允許播放速率。 |