IAnimatedVisualSource Interface

Definition

An animated Visual that can be used by other objects, such as an AnimatedVisualPlayer.

C#
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Guid(692544963, 28899, 21852, 150, 87, 1, 252, 64, 81, 22, 157)]
[Windows.Foundation.Metadata.Version(1)]
public interface IAnimatedVisualSource
C#
[Windows.Foundation.Metadata.Guid(692544963, 28899, 21852, 150, 87, 1, 252, 64, 81, 22, 157)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public interface IAnimatedVisualSource
Derived
Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute GuidAttribute VersionAttribute ContractVersionAttribute

Remarks

Call the IAnimatedVisualSource.TryCreateAnimatedVisual(Compositor, Object) method to retrieve an IAnimatedVisual object. This IAnimatedVisual can then be used to get a Composition.Visual, which can be added to a XAML element tree using the methods of ElementCompositionPreview.

Methods

TryCreateAnimatedVisual(Compositor, Object)

Attempts to create an animated visual.

Applies to

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6