IconSource.Foreground Propiedad

Definición

Obtiene o establece un pincel que pinta el color de primer plano del control.

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:
 property Brush ^ Foreground { Brush ^ get(); void set(Brush ^ value); };
Brush Foreground();

void Foreground(Brush value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
Brush Foreground();

void Foreground(Brush value);
public Brush Foreground { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public Brush Foreground { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
Public Property Foreground As Brush
<iconSource Foreground="{StaticResource resourceName}"/>

Valor de propiedad

El pincel que pinta el primer plano del control. El valor predeterminado es null, (un pincel nulo), que se evalúa como Transparente para la representación. Sin embargo, este valor se establece normalmente mediante un recurso del sistema predeterminado en tiempo de ejecución que está vinculado al tema activo y a otras configuraciones.

Atributos
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Se aplica a