IconSource.Foreground Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for