Udostępnij za pośrednictwem


IconSource.Foreground Property

Definition

Gets or sets a brush that describes the foreground color.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.IconSource.Foreground (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property Brush ^ Foreground { Brush ^ get(); void set(Brush ^ value); };
Brush Foreground();

void Foreground(Brush value);
public Brush Foreground { get; set; }
var brush = iconSource.foreground;
iconSource.foreground = brush;
Public Property Foreground As Brush
<iconSource Foreground="{StaticResource resourceName}"/>

Property Value

The brush that paints the foreground of the control. The default is null, (a null brush) which is evaluated as Transparent for rendering. However, this value is typically set by a default system resource at runtime, which is tied to the active theme and other settings.

Applies to