-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.AnimatedVisuals.AnimatedGlobalNavigationButtonVisualSource.SetColorProperty(System.String,Windows.UI.Color) |
winrt method |
Microsoft.UI.Xaml.Controls.AnimatedVisuals.AnimatedGlobalNavigationButtonVisualSource.SetColorProperty(System.String,Windows.UI.Color)
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).
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