Share via


IAnimatedVisualSource Interface

Definition

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

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public interface class IAnimatedVisualSource
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Guid(1471113486, 45873, 21602, 140, 198, 197, 41, 165, 218, 65, 35)]
/// [Windows.Foundation.Metadata.Version(1)]
struct IAnimatedVisualSource
/// [Windows.Foundation.Metadata.Guid(1471113486, 45873, 21602, 140, 198, 197, 41, 165, 218, 65, 35)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
struct IAnimatedVisualSource
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Guid(1471113486, 45873, 21602, 140, 198, 197, 41, 165, 218, 65, 35)]
[Windows.Foundation.Metadata.Version(1)]
public interface IAnimatedVisualSource
[Windows.Foundation.Metadata.Guid(1471113486, 45873, 21602, 140, 198, 197, 41, 165, 218, 65, 35)]
[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 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 instance of an animated visual.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Applies to