IconSource.Foreground Proprietà

Definizione

Ottiene o imposta un pennello che disegna il colore di primo piano del controllo.

Questa documentazione si applica a WinUI 2 per UWP (per WinUI nella SDK per app di Windows, vedere gli spazi dei nomi SDK per app di 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}"/>

Valore della proprietà

Il pennello mediante cui viene disegnato il primo piano del controllo. Il valore predefinito è Null, (un pennello Null), che viene valutato come Transparent per il rendering. Tuttavia, questo valore viene in genere impostato da una risorsa di sistema predefinita in fase di esecuzione associata al tema attivo e ad altre impostazioni.

Attributi
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Si applica a