TextElement.Foreground TextElement.Foreground TextElement.Foreground TextElement.Foreground Property

Definition

Gets or sets the Brush to apply to the content in this element.

public : Brush Foreground { get; set; }
Brush Foreground();

void Foreground(Brush foreground);
public Brush Foreground { get; set; }
Public ReadWrite Property Foreground As Brush
<textElementForeground="{StaticResource resourceName}"/>

Property Value

The brush that is applied to the text content. The default is a SolidColorBrush with Color value Black.

Remarks

Setting Foreground has no visible effect for LineBreak or InlineUIContainer objects.

See also