Compositor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Manages the session between an application and the system compositor process.
The Compositor class creates an instance of the Compositor for the application that can be used as a factory for a variety of types in the Windows.UI.Composition namespace spanning the visual layer, effects system and animation system. The Compositor class also manages the lifetime of objects created from the factory.
public ref class Compositor sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.LiftedContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 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(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
class Compositor final : IClosable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.LiftedContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 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(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public sealed class Compositor : System.IDisposable
function Compositor()
Public NotInheritable Class Compositor
Implements IDisposable
- Inheritance
- Attributes
- Implements
Remarks
The Compositor implicitly synchronizes changes made to associated visuals to ensure they get applied in a transactional manner.
See the Composition UI Overview and Composition Visual Tree Overview for more information.
New instances of Compositor must be created on a thread that has a CoreDispatcher.
Constructors
Compositor() |
Creates an instance of Compositor. |
Properties
Comment |
Gets or sets a string to associate with the Compositor. |
DispatcherQueue |
Gets the dispatcher queue for this compositor. |
GlobalPlaybackRate |
Gets or sets the rate at which animation plays for all KeyFrame animations created by this compositor. |
MaxGlobalPlaybackRate |
Gets the maximum allowed playback rate for all KeyFrame animations created by this compositor.. |
MinGlobalPlaybackRate |
Gets the minimum allowed playback rate for all KeyFrame animations created by this compositor. |