[]
        
(Showing Draft Content)

C1.WPF.Input.C1TextEditableContentControl

C1TextEditableContentControl Class

The ContentControl that supports edit mode using a TextBox.

Namespace: C1.WPF.Input
Assembly: C1.WPF.Input.dll
Syntax
[TemplatePart(Name = "EditControl", Type = typeof(C1TextBoxBase))]
[TemplatePart(Name = "ContentControl", Type = typeof(ContentPresenter))]
public class C1TextEditableContentControl : C1EditableContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDisposable

Constructors

Name Description
C1TextEditableContentControl()

Initializes a new instance of the C1TextEditableContentControl class.

Fields

Name Description
CaretBrushProperty

Identifies the CaretBrush dependency property.

IsPlaceholderVisibleProperty

Identifies the IsPlaceholderVisible dependency property.

PlaceholderProperty

Identifies the Placeholder dependency property.

TextAlignmentProperty

Identifies the TextAlignment dependency property.

Properties

Name Description
CaretBrush

Gets or sets the Brush of the blinking cursor of an input control.

EditTextBox

C1.Silverlight.C1TextBoxBase used during the edit mode.

IsDirty

Get or sets whether the element was edited during edit mode.

IsPlaceholderVisible

Get or sets if the placeholder is shown.

Placeholder

Gets or sets the placeholder text.

TextAlignment

Gets or sets how the text should be aligned in the C1TextEditableContentControl.

Methods

Name Description
Dispose(bool)
OnApplyTemplate()
OnEditCanceled()

Fires the C1.Silverlight.C1EditableContentControl.EditCanceled event.

OnIsInEditModeChanged()

The control has changed the mode.

ShouldEnterEditModeOnKeyDown(Key)

Called to define if the control has to enter edit mode when a particular key is pressed. For example: arrow keys might not change to edit mode.

Events

Name Description
TextBoxKeyDown

Event fired when a key is pressed in the EditableTextBox.

TextBoxKeyUp

Event fired when a key is released in the EditableTextBox.

TextEdited

Event fired to do when the text is edited in the EditableTextBox.

ValidateInput

Event fired when the editing is completed. Handle this event to validate the new input.