New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public sealed class GlyphAdorner : Adorner, IDisposable

Inheritance: objectGlyphAdorner

Implements: IDisposable

Constructors

Initializes a new instance of the GlyphAdorner class.

C#
public GlyphAdorner(TextBlock adornedElement)
Parameters:adornedElementTextBlock

TextBlock to be adorned.

Fields

GlyphStringProperty

DependencyProperty

Identifies the GlyphString property.

C#
public static readonly DependencyProperty GlyphStringProperty

Identifies the ShowGlyphInDesignTime property.

C#
public static readonly DependencyProperty ShowGlyphInDesignTimeProperty

Properties

GlyphString property for the GlyphAdorner. This is a dependency property.

C#
public string GlyphString { get; set; }

Methods

Dispose adorner and clear values.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Getter for the ShowGlyphInDesignTime property. This is a dependency property.

C#
public static bool GetShowGlyphInDesignTime(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Override for the MeasureOverride of the GlyphAdorner.

C#
protected override Size MeasureOverride(Size constraint)
Parameters:constraintSizeReturns:

Size

Override for the OnRender of the GlyphAdorner. The glyph FormattedText and a rectangle of the Parent's background color are drawn here.

C#
protected override void OnRender(DrawingContext drawingContext)
Parameters:drawingContextDrawingContext

Setter for the ShowGlyphInDesignTime property. This is a dependency property.

C#
public static void SetShowGlyphInDesignTime(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool