AnimatedAcceptVisualSource 类

定义

表示可用作动画图标源的检查标记的动画。

public ref class AnimatedAcceptVisualSource 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 AnimatedAcceptVisualSource 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 AnimatedAcceptVisualSource : IAnimatedVisualSource2
Public NotInheritable Class AnimatedAcceptVisualSource
Implements IAnimatedVisualSource2
继承
Object Platform::Object IInspectable AnimatedAcceptVisualSource
属性
实现

注解

这可用作 的AnimatedIcon。 它由 XAML CheckBox 控件使用。

AnimatedIcon.State 支持的 IAnimatedVisualSource2.Markers

  • NormalIndeterminate
  • NormalOffToNormalOn
  • NormalOffToPointerOverOff
  • NormalOffToPressedOff
  • NormalOnToNormalOff
  • NormalOnToPointerOverOn
  • NormalOnToPressedOn
  • PointerOverIndeterminate
  • PointerOverOffToNormalOff
  • PointerOverOffToPointerOverOn
  • PointerOverOffToPressedOff
  • PointerOverOnToNormalOn
  • PointerOverOnToPointerOverOff
  • PointerOverOnToPressedOn
  • PressedIndeterminate
  • PressedOffToNormalOn
  • PressedOffToPointerOverOn
  • PressedOffToPressedOn
  • PressedOnToNormalOff
  • PressedOnToPointerOverOff
  • PressedOnToPressedOff

构造函数

AnimatedAcceptVisualSource()

初始化 AnimatedAcceptVisualSource 类的新实例。

属性

Markers

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

方法

SetColorProperty(String, Color)

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

TryCreateAnimatedVisual(Compositor, Object)

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

适用于

另请参阅