Glyphs.Fill Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the Brush that is used to render the glyphs.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<Glyphs ...> <Glyphs.Fill> singleBrush </Glyphs.Fill> </Glyphs>
<Glyphs Fill="colorString"/>
XAML Values
Property Value
Type: System.Windows.Media.BrushThe brush to use to render the glyphs. The default is Nothing, which is evaluated as Transparent for rendering.
Dependency property identifier field: FillProperty
Glyphs that fill with the default Nothing 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.
Note: |
|---|
The default Fill is Nothing. 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. |
Note: