Gets or sets the Brush to apply to the text contents of the TextBlock.
Syntax
<TextBlock> <TextBlock.Foreground> singleBrush </TextBlock.Foreground> </TextBlock>
<TextBlock Foreground="colorString"/>
XAML Values
- singleBrush
-
A single object element for an object that derives from Brush. The object element is typically one of the following classes that are: LinearGradientBrush, ImageBrush, SolidColorBrush.
- colorString
-
The Color for a SolidColorBrush expressed as a string value for the attribute. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB values can also specify alpha information. For more information, see the "XAML Values" and "Predefined Colors" sections in Brush.
Property value
Type: Brush
The brush used to apply to the text contents. The default is a SolidColorBrush with a Color value of Black.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 3/12/2013