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.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public sealed class GlyphAdorner : Adorner, IDisposable

Inheritance: objectGlyphAdorner

Implements: IDisposable

Constructors

GlyphAdorner(TextBlock)

Initializes a new instance of the GlyphAdorner class.

Declaration

cs-api-definition
public GlyphAdorner(TextBlock adornedElement)

Parameters

adornedElement

TextBlock

TextBlock to be adorned.

Fields

GlyphStringProperty

Identifies the GlyphString property.

Declaration

cs-api-definition
public static readonly DependencyProperty GlyphStringProperty

Field Value

DependencyProperty

ShowGlyphInDesignTimeProperty

Identifies the ShowGlyphInDesignTime property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowGlyphInDesignTimeProperty

Field Value

DependencyProperty

Properties

GlyphString

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

Declaration

cs-api-definition
public string GlyphString { get; set; }

Property Value

string

Methods

Dispose()

Dispose adorner and clear values.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

GetShowGlyphInDesignTime(DependencyObject)

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

Declaration

cs-api-definition
public static bool GetShowGlyphInDesignTime(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

MeasureOverride(Size)

Override for the MeasureOverride of the GlyphAdorner.

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnRender(DrawingContext drawingContext)

Parameters

drawingContext

DrawingContext

SetShowGlyphInDesignTime(DependencyObject, bool)

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

Declaration

cs-api-definition
public static void SetShowGlyphInDesignTime(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool