Skip to content

GlyphElement class

A lightweight element that displays a GlyphKind shape. Foreground color is inherited from ancestors.

Guide: C# Markup reference: Shape

public sealed class GlyphElement : FrameworkElement
name description
GlyphElement() The default constructor.
Foreground { get; set; } Gets or sets the foreground color, backed by ForegroundProperty so it participates in the same inheritance chain as text-bearing ancestors.
GlyphSize { get; set; } Gets or sets the glyph size in DIPs.
Kind { get; set; } Gets or sets the shape drawn.
StrokeThickness { get; set; } Gets or sets the stroke thickness in DIPs.
ClearForeground() Clears a locally set Foreground, reverting to the inherited value.
static readonly GlyphSizeProperty
static readonly KindProperty
static readonly StrokeThicknessProperty