Class 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.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public sealed class GlyphAdorner : Adorner, IDisposable
Constructors
GlyphAdorner(TextBlock)
Initializes a new instance of the GlyphAdorner class.
Declaration
public GlyphAdorner(TextBlock adornedElement)
Parameters
System.Windows.Controls.TextBlock
adornedElement
TextBlock to be adorned. |
Fields
GlyphStringProperty
Identifies the GlyphString property.
Declaration
public static readonly DependencyProperty GlyphStringProperty
Field Value
System.Windows.DependencyProperty
|
ShowGlyphInDesignTimeProperty
Identifies the ShowGlyphInDesignTime property.
Declaration
public static readonly DependencyProperty ShowGlyphInDesignTimeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
GlyphString
GlyphString property for the GlyphAdorner. This is a dependency property.
Declaration
public string GlyphString { get; set; }
Property Value
System.String
|
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
System.Windows.DependencyObject
obj
|
Returns
System.Boolean
|
MeasureOverride(Size)
Override for the MeasureOverride of the GlyphAdorner.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
System.Windows.Size
constraint
|
Returns
System.Windows.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
System.Windows.Media.DrawingContext
drawingContext
|
SetShowGlyphInDesignTime(DependencyObject, Boolean)
Setter for the ShowGlyphInDesignTime property. This is a dependency property.
Declaration
public static void SetShowGlyphInDesignTime(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject
obj
|
System.Boolean
value
|