GlyphAdorner
GlyphAdorner class for design time support of the TelerikWebUI glyph font. Provides an attached property for TextBlock IsInDesignTime, which when set to true allows the rendering of TelerikWebUI font glyphs in design time.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public sealed class GlyphAdorner : Adorner, IDisposable
Inheritance: objectGlyphAdorner
Implements:
Constructors
Initializes a new instance of the GlyphAdorner class.
public GlyphAdorner(TextBlock adornedElement)
TextBlock to be adorned.
Fields
GlyphStringProperty
DependencyProperty
Identifies the GlyphString property.
public static readonly DependencyProperty GlyphStringProperty
ShowGlyphInDesignTimeProperty
DependencyProperty
Identifies the ShowGlyphInDesignTime property.
public static readonly DependencyProperty ShowGlyphInDesignTimeProperty
Properties
GlyphString property for the GlyphAdorner. This is a dependency property.
public string GlyphString { get; set; }
Methods
Dispose adorner and clear values.
public void Dispose()
Implements:
Getter for the ShowGlyphInDesignTime property. This is a dependency property.
public static bool GetShowGlyphInDesignTime(DependencyObject obj)
Override for the MeasureOverride of the GlyphAdorner.
protected override Size MeasureOverride(Size constraint)
Size
Override for the OnRender of the GlyphAdorner. The glyph FormattedText and a rectangle of the Parent's background color are drawn here.
protected override void OnRender(DrawingContext drawingContext)
Setter for the ShowGlyphInDesignTime property. This is a dependency property.
public static void SetShowGlyphInDesignTime(DependencyObject obj, bool value)