Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.27 KB

animatedacceptvisualsource_setcolorproperty_245729801.md

File metadata and controls

33 lines (20 loc) · 1.27 KB
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.AnimatedVisuals.AnimatedAcceptVisualSource.SetColorProperty(System.String,Windows.UI.Color)
winrt method

Microsoft.UI.Xaml.Controls.AnimatedVisuals.AnimatedAcceptVisualSource.SetColorProperty(System.String,Windows.UI.Color)

-description

Sets the color of the animated visual for an AnimatedIcon.

-parameters

-param propertyName

The property name of the color as defined in the JSON file for the animated icon.

-param value

The color value the animated icon is being set to.

-remarks

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.

-see-also

IAnimatedVisualSource2.SetColorProperty(System.String,Windows.UI.Color), Animated icons guidance

-examples