Condividi tramite


AnimatedChevronUpDownSmallVisualSource.SetColorProperty(String, Color) Metodo

Definizione

Imposta il colore dell'oggetto visivo animato per un oggetto AnimatedIcon.

public:
 virtual void SetColorProperty(Platform::String ^ propertyName, Color value) = SetColorProperty;
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 definito nel file JSON per l'icona animata.

value
Color

Il valore del colore su cui è impostata l'icona animata.

Implementazioni

M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource2.SetColorProperty(System.String,Windows.UI.Color) M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource2.SetColorProperty(Platform::String,Windows.UI.Color) M:Microsoft.UI.Xaml.Controls.IAnimatedVisualSource2.SetColorProperty(winrt::hstring,Windows.UI.Color)

Commenti

Il nome della proprietà del colore è definito nel file JSON generato da LottieGen per l'icona animata. Ad esempio, se si definisce una proprietà color nell'animazione Lottie denominata Foreground, è possibile impostare il colore usando la AnimatedIcon.Foreground proprietà .

Si applica a

Vedi anche