IAnimatedVisualSource 接口

定义

可由其他对象(如 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
派生
属性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute GuidAttribute VersionAttribute ContractVersionAttribute

注解

调用 IAnimatedVisualSource.TryCreateAnimatedVisual (Compositor, Object) 方法来检索 IAnimatedVisual 对象。 然后,可以使用它 IAnimatedVisual 来获取 Composition.Visual,该组件可以使用 ElementCompositionPreview 的方法添加到 XAML 元素树中。

方法

TryCreateAnimatedVisual(Compositor, Object)

尝试创建动画视觉对象。

适用于