ClassGlyphAdorner
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
GlyphAdorner(TextBlock)
Initializes a new instance of the GlyphAdorner class.
Declaration
public GlyphAdorner(TextBlock adornedElement)
Parameters
adornedElement
TextBlock
TextBlock to be adorned.
Fields
GlyphStringProperty
Identifies the GlyphString property.
Declaration
public static readonly DependencyProperty GlyphStringProperty
Field Value
DependencyProperty
ShowGlyphInDesignTimeProperty
Identifies the ShowGlyphInDesignTime property.
Declaration
public static readonly DependencyProperty ShowGlyphInDesignTimeProperty
Field Value
DependencyProperty
Properties
GlyphString
GlyphString property for the GlyphAdorner. This is a dependency property.
Methods
Dispose()
Dispose adorner and clear values.
Declaration
public void Dispose()
Implements
GetShowGlyphInDesignTime(DependencyObject)
Getter for the ShowGlyphInDesignTime property. This is a dependency property.
Declaration
public static bool GetShowGlyphInDesignTime(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
MeasureOverride(Size)
Override for the MeasureOverride of the GlyphAdorner.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
constraint
Size
Returns
Size
OnRender(DrawingContext)
Override for the OnRender of the GlyphAdorner. The glyph FormattedText and a rectangle of the Parent's background color are drawn here.
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
drawingContext
DrawingContext
SetShowGlyphInDesignTime(DependencyObject, bool)
Setter for the ShowGlyphInDesignTime property. This is a dependency property.
Declaration
public static void SetShowGlyphInDesignTime(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
value