Fill Property
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property Fill As Brush
<Glyphs ...>
  <Glyphs.Fill>
    singleBrush
  </Glyphs.Fill>
</Glyphs>
<Glyphs Fill="colorString"/>

XAML Values

singleBrush

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 Windows Phone classes: ImageBrush, LinearGradientBrush, RadialGradientBrush, SolidColorBrush, or VideoBrush.

colorString

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 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.

NoteNote:

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft