# 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"><span class="xref">C1Tag</span></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_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(C1Button))]
public class C1Tag : C1ContentControl</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(C1Button))&gt;
Public Class C1Tag
    Inherits C1ContentControl</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 the <a class="xref" href="C1.WPF.Input.C1Tag.html">C1Tag</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_C1Tag_CloseIconStyleProperty" data-uid="C1.WPF.Input.C1Tag.CloseIconStyleProperty">
          <a class="xref" href="C1.WPF.Input.C1Tag.CloseIconStyleProperty.html">CloseIconStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1Tag.CloseIconStyle.html#C1_WPF_Input_C1Tag_CloseIconStyle">CloseIconStyle</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_CloseIconTemplateProperty" data-uid="C1.WPF.Input.C1Tag.CloseIconTemplateProperty">
          <a class="xref" href="C1.WPF.Input.C1Tag.CloseIconTemplateProperty.html">CloseIconTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Input.C1Tag.CloseIconTemplate.html#C1_WPF_Input_C1Tag_CloseIconTemplate">CloseIconTemplate</a> dependency property.</p>
</td>
      </tr>
      <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_CloseIconStyle" data-uid="C1.WPF.Input.C1Tag.CloseIconStyle">
          <a class="xref" href="C1.WPF.Input.C1Tag.CloseIconStyle.html#C1_WPF_Input_C1Tag_CloseIconStyle">CloseIconStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style applied to the close icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_C1Tag_CloseIconTemplate" data-uid="C1.WPF.Input.C1Tag.CloseIconTemplate">
          <a class="xref" href="C1.WPF.Input.C1Tag.CloseIconTemplate.html#C1_WPF_Input_C1Tag_CloseIconTemplate">CloseIconTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the template of the close icon.</p>
</td>
      </tr>
      <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_Dispose_System_Boolean_" data-uid="C1.WPF.Input.C1Tag.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Input.C1Tag.Dispose.html#C1_WPF_Input_C1Tag_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <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"></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>
