Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.76 KB

File metadata and controls

41 lines (32 loc) · 1.76 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Documents.Glyphs.Fill
winrt property

Microsoft.UI.Xaml.Documents.Glyphs.Fill

-description

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

-xaml-syntax

<Glyphs Fill="{StaticResource resourceName"/>
- or -
<Glyphs Fill="colorString"/>
- or -
<Glyphs>
  <Glyphs.Fill>singleBrush</Glyphs.Fill>
</Glyphs>

-xaml-values

resourceName
resourceNameThe resource name (x:Key attribute 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
colorStringThe 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
singleBrushWithin 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 The brush to use to render the glyphs. The default is **null**, which is evaluated as [Transparent](../microsoft.ui/colors_transparent.md) 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.

-examples

-see-also

XAML brushes