Condividi tramite


IAnimatedVisualSource2.SetColorProperty(String, Color) Metodo

Definizione

Imposta un colore per l'oggetto visivo animato.

public:
 void SetColorProperty(Platform::String ^ propertyName, Color value);
void SetColorProperty(winrt::hstring const& propertyName, Color const& value);
public void SetColorProperty(string propertyName, Color value);
function setColorProperty(propertyName, value)
Public Sub SetColorProperty (propertyName As String, value As Color)

Parametri

propertyName
String

Platform::String

winrt::hstring

Nome della proprietà del colore come definito nel file JSON per l'icona animata.

value
Color

Valore del colore per propertyName.

Commenti

Il file JSON per l'icona animata viene generato da LottieGen. Ad esempio, se definisci una proprietà color nell'animazione Lottie denominata Foreground, puoi impostare il colore usando la AnimatedIcon.Foreground proprietà .

Si applica a