Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.48 KB

animatedsettingsvisualsource_setcolorproperty_245729801.md

File metadata and controls

36 lines (21 loc) · 1.48 KB
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.AnimatedVisuals.AnimatedSettingsVisualSource.SetColorProperty(System.String,Windows.UI.Color)
winrt method

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

-description

Sets the color of the animated visual for an AnimatedIcon.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-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