IAnimatedVisualSource2.SetColorProperty(String, Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a color for the animated visual.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
public:
void SetColorProperty(Platform::String ^ propertyName, Color value);
void SetColorProperty(winrt::hstring const& propertyName, Color const& value);
public void SetColorProperty(string propertyName, Color value);
Public Sub SetColorProperty (propertyName As String, value As Color)
Parameters
- propertyName
-
String
Platform::String
winrt::hstring
The property name of the color as defined in the JSON file for the animated icon.
- value
- Color
The color value for the propertyName.
Remarks
The JSON file for the animated icon is generated by LottieGen. For example, if you define a color property in your Lottie animation named Foreground
, you can set the color using the AnimatedIcon.Foreground
property.