Glyphs.Fill Property

Gets or sets the Brush that is used to render the glyphs.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)

public Brush Fill { get; set; }
<Glyphs ...>
<Glyphs Fill="colorString"/>

XAML Values


Within opening and closing property elements for Glyphs.Fill, exactly one object element for an object that derives from Brush. The object element is typically one of the following Silverlight classes: ImageBrush, LinearGradientBrush, RadialGradientBrush, SolidColorBrush, or VideoBrush.


The Color for a SolidColorBrush expressed as an attribute string. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB may also specify alpha information.

Property Value

Type: System.Windows.Media.Brush
The brush to use to render the glyphs. The default is null, which is evaluated as Transparent for rendering.

Dependency property identifier field: FillProperty

Glyphs that fill with the default null setting cannot be hit-tested. Glyphs that fill with the Transparent setting can be hit-tested.

The first XAML syntax shown is an attribute syntax. Use this syntax when you want the Fill to be a SolidColorBrush, which can be expressed as its Color value, for example "Red" or "#FF0000".

The second XAML syntax shown is a property element syntax. Use this syntax when you want the Fill to be a more complex brush than a SolidColorBrush, such as ImageBrush, LinearGradientBrush, or RadialGradientBrush.


The default Fill is null. Therefore in order to render anything with Glyphs you should specify a Fill either in XAML or script. This is in contrast to Foreground, which defaults to Transparent.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions