The Foreground property enables you to specify a Brush for the rendered text. The following XAML example shows the simplest usage for Foreground, which is to use a named color string that applies a SolidColorBrush of that color to the text. Notice that Foreground is set separately on TextBlock and on each of the Run text elements within it.
XAML
<!-- TextBlock with different brushes applied to parts of the text. -->
<TextBlock
FontFamily="Verdana"
Foreground="Navy">
Navy
<Run Text="DodgerBlue " Foreground="DodgerBlue"/>
<Run Text="LightSteelBlue " Foreground="LightSteelBlue"/>
</TextBlock>
A solid color is not the only way to apply a foreground to a font. You can use any of the Brush derived classes in Silverlight, including RadialGradientBrush, LinearGradientBrush, ImageBrush and VideoBrush. If you specify these brushes in XAML, you must use property element syntax, or use a reference such as a resource reference. The following XAML shows an example of using property element syntax and specifying an ImageBrush for text:
XAML
<TextBlock Text="SHRUBBERY">
<TextBlock.Foreground>
<ImageBrush ImageSource="forest.jpg"/>
</TextBlock.Foreground>
</TextBlock>