RadGlyphExtension
Provides a MarkupExtension for rendering glyphs using customizable fonts, sizes, and colors in a WPF application. This class allows the user to set default font properties and provides methods to obtain glyph images or geometries based on specified parameters. It supports dynamic changes to the glyph's size, foreground color, and font name, while ensuring that appropriate validation is in place for input values. The glyph can be rendered as either an image or a path based on the target property type. Default values for the font name and size are provided, making the extension easy to use in various contexts.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class RadGlyphExtension : MarkupExtension
Inheritance: objectRadGlyphExtension
Constructors
public RadGlyphExtension()
Properties
Gets or sets the name of the registered font to be used. Default value is TelerikWebUI.
public string Font { get; set; }
Foreground
Brush
Gets or sets the color to be used when creating the glyph. Default value is black.
public Brush Foreground { get; set; }
Gets or sets the size of the glyph to be used. Default value is 16d.
public double Size { get; set; }
Gets or sets explicitly the GlyphExportType.
public GlyphExportType Type { get; set; }
Methods
Gets the default font name to be used when rendering glyphs.
Gets the default font size to be used when rendering glyphs.
public override object ProvideValue(IServiceProvider serviceProvider)
Sets the default font name to be used when rendering glyphs.
Sets the default font size to be used when rendering glyphs.