Glyphs.Fill property

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

Syntax


public Brush Fill { get; set; }


<Glyphs Fill="{StaticResource resourceName"/>



<Glyphs Fill="colorString"/>



<Glyphs>
  <Glyphs.Fill>singleBrush</Glyphs.Fill>
</Glyphs>


XAML Values

resourceName

The resource name (x:Key value) of an existing XAML resource that defines a brush. This is the recommended way to specify Brush values in XAML if you have any intention of using the same colors or brushes in more than one part of your UI. See Remarks in Brush or ResourceDictionary and XAML resource references.

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. See the "XAML Values" section in Color.

singleBrush

Within opening and closing property elements, exactly one object element for an object that derives from Brush. This is typically one of the following classes: LinearGradientBrush, ImageBrush, SolidColorBrush.

Property value

Type: Brush

The brush to use to render the glyphs. The default is null, which is evaluated as Transparent for rendering.

Remarks

Because the default is null, you almost always should define a value for Fill somehow if you want your Glyphs to render in UI.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.winmd

See also

Glyphs
Quickstart: Using brushes

 

 

Show:
© 2015 Microsoft