IconSource.Foreground Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Pinsels, der die Vordergrundfarbe des Steuerelements angibt.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe die Windows App SDK Namespaces).

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}"/>

Eigenschaftswert

Der Pinsel, der den Vordergrund des Steuerelements zeichnet. Der Standardwert ist null, (ein NULL-Pinsel), der als transparent für das Rendern ausgewertet wird. Dieser Wert wird jedoch in der Regel von einer Standardsystemressource zur Laufzeit festgelegt, die an das aktive Design und andere Einstellungen gebunden ist.

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Gilt für: