-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.AnimatedVisuals.AnimatedFindVisualSource.SetColorProperty(System.String,Windows.UI.Color) |
winrt method |
Microsoft.UI.Xaml.Controls.AnimatedVisuals.AnimatedFindVisualSource.SetColorProperty(System.String,Windows.UI.Color)
Sets the color of the animated visual for an AnimatedIcon.
The property name of the color as defined in the JSON file for the animated icon.
The color value the animated icon is being set to.
The property name of the color is defined in the JSON file generated by LottieGen for the animated icon. For example, if you define a color property in your Lottie animation named Foreground
, you can set the color using the AnimatedIcon.Foreground
property.
IAnimatedVisualSource2.SetColorProperty(System.String,Windows.UI.Color), Animated icons guidance