ContentPresenter.Foreground ContentPresenter.Foreground ContentPresenter.Foreground ContentPresenter.Foreground Property

Definition

Gets or sets the Brush to apply to the text content handled by the ContentPresenter.

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

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

Property Value

The brush used as the foreground brush for the text contents. The default is a null brush from a pure code perspective, but system style defaults set this to Black (for Light theme) or White (for Dark theme).

See also