AnimatedSettingsVisualSource.SetColorProperty(String, Color) Método

Definición

Establece el color del objeto visual animado para un AnimatedIcon.

Esta documentación se aplica a WinUI 2 para UWP (para WinUI en el SDK de Aplicaciones para Windows, consulta los espacios de nombres SDK de Aplicaciones para Windows).

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);
Public Sub SetColorProperty (propertyName As String, value As Color)

Parámetros

propertyName
String

Platform::String

winrt::hstring

Nombre de propiedad del color tal y como se define en el archivo JSON para el icono animado.

value
Color

Valor de color en el que se establece el icono animado.

Implementaciones

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)

Comentarios

El nombre de propiedad del color se define en el archivo JSON generado por LottieGen para el icono animado. Por ejemplo, si define una propiedad de color en la animación de Lottie denominada Foreground, puede establecer el color mediante la AnimatedIcon.Foreground propiedad .

Se aplica a

Consulte también