Share via


IconSource.Foreground Property

Definition

Gets or sets a brush that paints the foreground color of the control.

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 that is tied to the active theme and other settings.

Applies to