EditableTextBlockAdorner

Ecng.Xaml

Adorner class that overlays a TextBox over EditableTextBlock while it is in edit mode.

Inherits: Adorner

Constructors

EditableTextBlockAdorner
public EditableTextBlockAdorner(EditableTextBlock adornedElement)
editableTextBlockAdorner = EditableTextBlockAdorner(adornedElement)

Initializes a new instance of the EditableTextBlockAdorner class.

adornedElement
The associated editable text block.

Properties

VisualChildrenCount
protected override int VisualChildrenCount { get; }
value = editableTextBlockAdorner.VisualChildrenCount

Return the number of links visible in this layer.

Methods

ArrangeOverride
protected override Size ArrangeOverride(Size finalSize)
result = editableTextBlockAdorner.ArrangeOverride(finalSize)

Provides the behavior for the "Arrange" pass of layout.

finalSize
The final area within the parent that this element should use to arrange itself and its children.

Returns: The actual size used.

GetVisualChild
protected override Visual GetVisualChild(int index)
result = editableTextBlockAdorner.GetVisualChild(index)

Get the nth link.

index

Events

TextBoxKeyUp
public event KeyEventHandler TextBoxKeyUp
editableTextBlockAdorner.TextBoxKeyUp += handler

Occurs when a key is released while the underlying TextBox has focus.

TextBoxLostFocus
public event RoutedEventHandler TextBoxLostFocus
editableTextBlockAdorner.TextBoxLostFocus += handler

Occurs when the underlying TextBox loses focus.