IAnimatedVisualSource2.Markers Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan koleksi yang menyediakan pemetaan nama penanda ke posisi pemutaran di animasi.
public:
property IMapView<Platform::String ^, double> ^ Markers { IMapView<Platform::String ^, double> ^ get(); };
IMapView<winrt::hstring, double> Markers();
public IReadOnlyDictionary<string,double> Markers { get; }
var iMapView = iAnimatedVisualSource2.markers;
Public ReadOnly Property Markers As IReadOnlyDictionary(Of String, Double)
Nilai Properti
Kumpulan nama dan nilai penanda yang ditentukan dalam file JSON untuk ikon animasi.
Keterangan
Kumpulan nama dan nilai penanda untuk ikon animasi didefinisikan dalam file JSON yang dihasilkan oleh LottieGen.
Contoh berikut menunjukkan format penanda dalam file Lottie JSON. Untuk informasi selengkapnya, lihat panduan 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}]