AnimatedBackVisualSource 类

定义

表示可用作动画图标源的后退箭头的动画。

public ref class AnimatedBackVisualSource sealed : IAnimatedVisualSource2
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.XamlContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AnimatedBackVisualSource final : IAnimatedVisualSource2
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.XamlContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AnimatedBackVisualSource : IAnimatedVisualSource2
Public NotInheritable Class AnimatedBackVisualSource
Implements IAnimatedVisualSource2
继承
Object Platform::Object IInspectable AnimatedBackVisualSource
属性
实现

注解

这可用作 的AnimatedIcon

AnimatedIcon.State 支持的 IAnimatedVisualSource2.Markers

  • NormalToPointerOver
  • NormalToPressed
  • PointerOverToNormal
  • PointerOverToPressed
  • PressedToNormal
  • PressedToPointerOver

构造函数

AnimatedBackVisualSource()

初始化 AnimatedBackVisualSource 类的新实例。

属性

Markers

AnimatedIcon 提供从标记名称到动画视觉对象中播放位置的映射。

方法

SetColorProperty(String, Color)

设置 AnimatedIcon 的动画视觉对象的颜色。

TryCreateAnimatedVisual(Compositor, Object)

尝试为 AnimatedIcon 创建 对象的实例AnimatedBackVisualSource

适用于

另请参阅