AvatarTextPresenter Class
Renders text within an Avatar control.
public class AvatarTextPresenter : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
AvatarTextPresenter()
Initializes an instance of the class.
public AvatarTextPresenter()
Properties
Text
The string text to display.
Methods
MeasureOverride(Size?)
Called to remeasure a control.
protected override Size? MeasureOverride(Size? constraint)
Parameter | Type | Description |
---|---|---|
constraint | Size | The maximum size that the method can return. |
Returns
- Size:
The size of the control, up to the maximum specified by
constraint
.
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext drawingContext)
Parameter | Type | Description |
---|---|---|
drawingContext | DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
Fields
TextProperty
Defines the Text property.
public static readonly DependencyProperty TextProperty