# C1.WPF.Input.C1Tag

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Input_C1Tag" data-uid="C1.WPF.Input.C1Tag" class="text-break">C1Tag Class
</h1>
  <div class="markdown level0 summary"><p>Visual element used inside a <a class="xref" href="C1.WPF.Input.C1TagEditor.html">C1TagEditor</a>.</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.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.contentcontrol">ContentControl</a></div>
    <div class="level8"><span class="xref">C1Tag</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Input.html">C1.WPF.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Input.4.6.2.dll</h6>
  <h5 id="C1_WPF_Input_C1Tag_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Content&quot;, Type = typeof(ContentPresenter))]
[TemplatePart(Name = &quot;Editor&quot;, Type = typeof(C1TextBoxBase))]
[TemplatePart(Name = &quot;Remove&quot;, Type = typeof(Button))]
public class C1Tag : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Content&quot;, Type:=GetType(ContentPresenter))&gt;
&lt;TemplatePart(Name:=&quot;Editor&quot;, Type:=GetType(C1TextBoxBase))&gt;
&lt;TemplatePart(Name:=&quot;Remove&quot;, Type:=GetType(Button))&gt;
Public Class C1Tag
    Inherits ContentControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</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_C1Tag__ctor" data-uid="C1.WPF.Input.C1Tag.#ctor">
          <a class="xref" href="C1.WPF.Input.C1Tag.-ctor.html#C1_WPF_Input_C1Tag__ctor">C1Tag()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Input.C1Tag.html">C1Tag</a>.</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_C1Tag_IsEditableProperty" data-uid="C1.WPF.Input.C1Tag.IsEditableProperty">
          <a class="xref" href="C1.WPF.Input.C1Tag.IsEditableProperty.html">IsEditableProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1Tag.IsEditable.html#C1_WPF_Input_C1Tag_IsEditable">IsEditable</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_IsInEditModeProperty" data-uid="C1.WPF.Input.C1Tag.IsInEditModeProperty">
          <a class="xref" href="C1.WPF.Input.C1Tag.IsInEditModeProperty.html">IsInEditModeProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1Tag.IsInEditMode.html#C1_WPF_Input_C1Tag_IsInEditMode">IsInEditMode</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_IsTagEditableProperty" data-uid="C1.WPF.Input.C1Tag.IsTagEditableProperty">
          <a class="xref" href="C1.WPF.Input.C1Tag.IsTagEditableProperty.html">IsTagEditableProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1Tag.IsTagEditable.html#C1_WPF_Input_C1Tag_IsTagEditable">IsTagEditable</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_C1Tag_IsEditable" data-uid="C1.WPF.Input.C1Tag.IsEditable">
          <a class="xref" href="C1.WPF.Input.C1Tag.IsEditable.html#C1_WPF_Input_C1Tag_IsEditable">IsEditable</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that enables or disables editing of the text in text box of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_IsInEditMode" data-uid="C1.WPF.Input.C1Tag.IsInEditMode">
          <a class="xref" href="C1.WPF.Input.C1Tag.IsInEditMode.html#C1_WPF_Input_C1Tag_IsInEditMode">IsInEditMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicates whether the control enters in edit mode or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_IsTagEditable" data-uid="C1.WPF.Input.C1Tag.IsTagEditable">
          <a class="xref" href="C1.WPF.Input.C1Tag.IsTagEditable.html#C1_WPF_Input_C1Tag_IsTagEditable">IsTagEditable</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the tag is editable or not.</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_C1Tag_OnApplyTemplate" data-uid="C1.WPF.Input.C1Tag.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Input.C1Tag.OnApplyTemplate.html#C1_WPF_Input_C1Tag_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Input.C1Tag.html">C1Tag</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_OnContentUpdating_System_Object_System_ComponentModel_CancelEventArgs_" data-uid="C1.WPF.Input.C1Tag.OnContentUpdating(System.Object,System.ComponentModel.CancelEventArgs)">
          <a class="xref" href="C1.WPF.Input.C1Tag.OnContentUpdating.html#C1_WPF_Input_C1Tag_OnContentUpdating_System_Object_System_ComponentModel_CancelEventArgs_">OnContentUpdating(object, CancelEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before a tag end edit.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_OnRemoveButtonClicked_System_Object_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.Input.C1Tag.OnRemoveButtonClicked(System.Object,System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.Input.C1Tag.OnRemoveButtonClicked.html#C1_WPF_Input_C1Tag_OnRemoveButtonClicked_System_Object_System_Windows_RoutedEventArgs_">OnRemoveButtonClicked(object, RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when remove button is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_OnTagEdited_System_Object_C1_WPF_Input_TagEditedEventArgs_" data-uid="C1.WPF.Input.C1Tag.OnTagEdited(System.Object,C1.WPF.Input.TagEditedEventArgs)">
          <a class="xref" href="C1.WPF.Input.C1Tag.OnTagEdited.html#C1_WPF_Input_C1Tag_OnTagEdited_System_Object_C1_WPF_Input_TagEditedEventArgs_">OnTagEdited(object, TagEditedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a tag is edited.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_UpdateVisualState" data-uid="C1.WPF.Input.C1Tag.UpdateVisualState">
          <a class="xref" href="C1.WPF.Input.C1Tag.UpdateVisualState.html#C1_WPF_Input_C1Tag_UpdateVisualState">UpdateVisualState()</a>
        </td>
        <td class="markdown level1 summary"><p>Update the visual state of this control</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_C1Tag_ContentUpdating" data-uid="C1.WPF.Input.C1Tag.ContentUpdating">
          <a class="xref" href="C1.WPF.Input.C1Tag.ContentUpdating.html">ContentUpdating</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before a tag's content is updating.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_RemoveButtonClicked" data-uid="C1.WPF.Input.C1Tag.RemoveButtonClicked">
          <a class="xref" href="C1.WPF.Input.C1Tag.RemoveButtonClicked.html">RemoveButtonClicked</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when remove button is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_TagEdited" data-uid="C1.WPF.Input.C1Tag.TagEdited">
          <a class="xref" href="C1.WPF.Input.C1Tag.TagEdited.html">TagEdited</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a tag is edited.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
