# C1.WPF.Input.C1TextEditableContentControl

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Input_C1TextEditableContentControl" data-uid="C1.WPF.Input.C1TextEditableContentControl" class="text-break">C1TextEditableContentControl Class
</h1>
  <div class="markdown level0 summary"><p>The ContentControl that supports edit mode using a TextBox.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.contentcontrol">ContentControl</a></div>
    <div class="level6"><a class="xref" href="C1.WPF.Input.C1EditableContentControl.html">C1EditableContentControl</a></div>
    <div class="level7"><span class="xref">C1TextEditableContentControl</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iaddchild">IAddChild</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Input.html">C1.WPF.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Input.dll</h6>
  <h5 id="C1_WPF_Input_C1TextEditableContentControl_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Obsolete]
[TemplatePart(Name = &quot;EditControl&quot;, Type = typeof(C1TextBoxBase))]
[TemplatePart(Name = &quot;ContentControl&quot;, Type = typeof(ContentPresenter))]
public class C1TextEditableContentControl : C1EditableContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Obsolete&gt;
&lt;TemplatePart(Name:=&quot;EditControl&quot;, Type:=GetType(C1TextBoxBase))&gt;
&lt;TemplatePart(Name:=&quot;ContentControl&quot;, Type:=GetType(ContentPresenter))&gt;
Public Class C1TextEditableContentControl
    Inherits C1EditableContentControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl__ctor" data-uid="C1.WPF.Input.C1TextEditableContentControl.#ctor">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.-ctor.html#C1_WPF_Input_C1TextEditableContentControl__ctor">C1TextEditableContentControl()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.html">C1TextEditableContentControl</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_CaretBrushProperty" data-uid="C1.WPF.Input.C1TextEditableContentControl.CaretBrushProperty">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.CaretBrushProperty.html">CaretBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.CaretBrush.html#C1_WPF_Input_C1TextEditableContentControl_CaretBrush">CaretBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_IsPlaceholderVisibleProperty" data-uid="C1.WPF.Input.C1TextEditableContentControl.IsPlaceholderVisibleProperty">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.IsPlaceholderVisibleProperty.html">IsPlaceholderVisibleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.IsPlaceholderVisible.html#C1_WPF_Input_C1TextEditableContentControl_IsPlaceholderVisible">IsPlaceholderVisible</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_PlaceholderProperty" data-uid="C1.WPF.Input.C1TextEditableContentControl.PlaceholderProperty">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.PlaceholderProperty.html">PlaceholderProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.Placeholder.html#C1_WPF_Input_C1TextEditableContentControl_Placeholder">Placeholder</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_TextAlignmentProperty" data-uid="C1.WPF.Input.C1TextEditableContentControl.TextAlignmentProperty">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.TextAlignmentProperty.html">TextAlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.TextAlignment.html#C1_WPF_Input_C1TextEditableContentControl_TextAlignment">TextAlignment</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_CaretBrush" data-uid="C1.WPF.Input.C1TextEditableContentControl.CaretBrush">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.CaretBrush.html#C1_WPF_Input_C1TextEditableContentControl_CaretBrush">CaretBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> of the blinking cursor of an input control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_EditTextBox" data-uid="C1.WPF.Input.C1TextEditableContentControl.EditTextBox">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.EditTextBox.html#C1_WPF_Input_C1TextEditableContentControl_EditTextBox">EditTextBox</a>
        </td>
        <td class="markdown level1 summary"><p><span class="xref">C1.Silverlight.C1TextBoxBase</span> used during the edit mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_IsDirty" data-uid="C1.WPF.Input.C1TextEditableContentControl.IsDirty">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.IsDirty.html#C1_WPF_Input_C1TextEditableContentControl_IsDirty">IsDirty</a>
        </td>
        <td class="markdown level1 summary"><p>Get or sets whether the element was edited during edit mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_IsPlaceholderVisible" data-uid="C1.WPF.Input.C1TextEditableContentControl.IsPlaceholderVisible">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.IsPlaceholderVisible.html#C1_WPF_Input_C1TextEditableContentControl_IsPlaceholderVisible">IsPlaceholderVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Get or sets if the placeholder is shown.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_Placeholder" data-uid="C1.WPF.Input.C1TextEditableContentControl.Placeholder">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.Placeholder.html#C1_WPF_Input_C1TextEditableContentControl_Placeholder">Placeholder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the placeholder text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_TextAlignment" data-uid="C1.WPF.Input.C1TextEditableContentControl.TextAlignment">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.TextAlignment.html#C1_WPF_Input_C1TextEditableContentControl_TextAlignment">TextAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how the text should be aligned in the <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.html">C1TextEditableContentControl</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_Dispose_System_Boolean_" data-uid="C1.WPF.Input.C1TextEditableContentControl.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.Dispose.html#C1_WPF_Input_C1TextEditableContentControl_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_OnApplyTemplate" data-uid="C1.WPF.Input.C1TextEditableContentControl.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.OnApplyTemplate.html#C1_WPF_Input_C1TextEditableContentControl_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_OnEditCanceled" data-uid="C1.WPF.Input.C1TextEditableContentControl.OnEditCanceled">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.OnEditCanceled.html#C1_WPF_Input_C1TextEditableContentControl_OnEditCanceled">OnEditCanceled()</a>
        </td>
        <td class="markdown level1 summary"><p>Fires the <a class="xref" href="C1.WPF.Input.C1EditableContentControl.EditCanceled.html">EditCanceled</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_OnIsInEditModeChanged" data-uid="C1.WPF.Input.C1TextEditableContentControl.OnIsInEditModeChanged">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.OnIsInEditModeChanged.html#C1_WPF_Input_C1TextEditableContentControl_OnIsInEditModeChanged">OnIsInEditModeChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>The control has changed the mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_ShouldEnterEditModeOnKeyDown_System_Windows_Input_Key_" data-uid="C1.WPF.Input.C1TextEditableContentControl.ShouldEnterEditModeOnKeyDown(System.Windows.Input.Key)">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.ShouldEnterEditModeOnKeyDown.html#C1_WPF_Input_C1TextEditableContentControl_ShouldEnterEditModeOnKeyDown_System_Windows_Input_Key_">ShouldEnterEditModeOnKeyDown(Key)</a>
        </td>
        <td class="markdown level1 summary"><p>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.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_TextBoxKeyDown" data-uid="C1.WPF.Input.C1TextEditableContentControl.TextBoxKeyDown">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.TextBoxKeyDown.html">TextBoxKeyDown</a>
        </td>
        <td class="markdown level1 summary"><p>Event fired when a key is pressed in the EditableTextBox.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_TextBoxKeyUp" data-uid="C1.WPF.Input.C1TextEditableContentControl.TextBoxKeyUp">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.TextBoxKeyUp.html">TextBoxKeyUp</a>
        </td>
        <td class="markdown level1 summary"><p>Event fired when a key is released in the EditableTextBox.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_TextEdited" data-uid="C1.WPF.Input.C1TextEditableContentControl.TextEdited">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.TextEdited.html">TextEdited</a>
        </td>
        <td class="markdown level1 summary"><p>Event fired to do when the text is edited in the EditableTextBox.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1TextEditableContentControl_ValidateInput" data-uid="C1.WPF.Input.C1TextEditableContentControl.ValidateInput">
          <a class="xref" href="C1.WPF.Input.C1TextEditableContentControl.ValidateInput.html">ValidateInput</a>
        </td>
        <td class="markdown level1 summary"><p>Event fired when the editing is completed.
Handle this event to validate the new input.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
