Share via


IAnimatedVisualSource Interface

Definition

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

public interface class IAnimatedVisualSource
/// [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)]
struct IAnimatedVisualSource
/// [Windows.Foundation.Metadata.Guid(692544963, 28899, 21852, 150, 87, 1, 252, 64, 81, 22, 157)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
struct IAnimatedVisualSource
[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
[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
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