AnimatedFindVisualSource.Markers 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 AnimatedIcon 提供从标记名称到动画视觉对象的播放位置的映射。
本文档适用于Windows 应用 SDK中的 WinUI 2 for UWP (for WinUI,请参阅) Windows 应用 SDK命名空间。
public:
property IMapView<Platform::String ^, double> ^ Markers { IMapView<Platform::String ^, double> ^ get(); };
IMapView<winrt::hstring, double> Markers();
public IReadOnlyDictionary<string,double> Markers { get; }
Public ReadOnly Property Markers As IReadOnlyDictionary(Of String, Double)
属性值
动画图标的 JSON 文件中定义的标记名称和值的集合。
实现
注解
定义标记名称和值的 JSON 文件由 LottieGen 生成。
以下示例演示了 Lottie JSON 文件中的标记格式。 有关更多详细信息,请参阅 AnimatedIcon 指南。
"markers":[{"tm":0,"cm":"NormalToPointerOver_Start","dr":0},{"tm":9,"cm":"NormalToPointerOver_End","dr":0},
{"tm":10,"cm":"NormalToPressed_Start","dr":0},{"tm":19,"cm":"NormalToPressed_End","dr":0},
{"tm":20,"cm":"PointerOverToNormal_Start","dr":0},{"tm":29,"cm":"PointerOverToNormal_End","dr":0},
{"tm":30,"cm":"PointerOverToPressed_Start","dr":0},{"tm":39,"cm":"PointerOverToPressed_End","dr":0},
{"tm":40,"cm":"PressedToNormal_Start","dr":0},{"tm":49,"cm":"PressedToNormal_End","dr":0},
{"tm":50,"cm":"PressedToPointerOver_Start","dr":0},{"tm":69,"cm":"PressedToPointerOver_End","dr":0},
{"tm":90,"cm":"PressedToNormal_Start","dr":0},{"tm":99,"cm":"PressedToNormal_End","dr":0},
{"tm":100,"cm":"PressedToPointerOver_Start","dr":0},{"tm":101,"cm":"PressedToPointerOver_End","dr":0}]