Class EditableTextBlock
A TextBlock that can be switched into an inline edit mode, rendering a TextBox adorner on top of itself.
public class EditableTextBlock : TextBlock, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IContentHost, IAddChild, IServiceProvider
- Inheritance
-
EditableTextBlock
- Implements
- Inherited Members
- Extension Methods
Constructors
EditableTextBlock()
public EditableTextBlock()
Fields
EditOnDoubleClickProperty
Identifies the EditOnDoubleClick dependency property.
public static readonly DependencyProperty EditOnDoubleClickProperty
Field Value
- DependencyProperty
IsInEditModeProperty
Identifies the IsInEditMode dependency property.
public static readonly DependencyProperty IsInEditModeProperty
Field Value
- DependencyProperty
MaxLengthProperty
Identifies the MaxLength dependency property.
public static readonly DependencyProperty MaxLengthProperty
Field Value
- DependencyProperty
Properties
EditOnDoubleClick
Gets or sets a value indicating whether double-clicking the control switches it to edit mode.
public bool EditOnDoubleClick { get; set; }
Property Value
IsInEditMode
Gets or sets a value indicating whether the control is currently in edit mode.
When set to true, an adorner with a TextBox is shown allowing the text to be edited.
public bool IsInEditMode { get; set; }
Property Value
MaxLength
Gets or sets the maximum number of characters that can be entered while in edit mode.
public int MaxLength { get; set; }
Property Value
Methods
OnMouseDown(MouseButtonEventArgs)
protected override void OnMouseDown(MouseButtonEventArgs e)