# C1.WPF.Docking.C1DockTabItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Docking_C1DockTabItem" data-uid="C1.WPF.Docking.C1DockTabItem" class="text-break">C1DockTabItem Class
</h1>
  <div class="markdown level0 summary"><p>Represents a selectable item in a <a class="xref" href="C1.WPF.Docking.C1DockTabControl.html">C1DockTabControl</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">C1DockTabItem</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Docking.html">C1.WPF.Docking</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Docking.4.6.2.dll</h6>
  <h5 id="C1_WPF_Docking_C1DockTabItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;DockTabItemContent&quot;, Type = typeof(ContentPresenter))]
[TemplateVisualState(Name = &quot;DockModeDocked&quot;, GroupName = &quot;States&quot;)]
[TemplateVisualState(Name = &quot;DockModeSliding&quot;, GroupName = &quot;States&quot;)]
[TemplateVisualState(Name = &quot;DockModeFloating&quot;, GroupName = &quot;States&quot;)]
public class C1DockTabItem : C1TabItem</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;DockTabItemContent&quot;, Type:=GetType(ContentPresenter))&gt;
&lt;TemplateVisualState(Name:=&quot;DockModeDocked&quot;, GroupName:=&quot;States&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;DockModeSliding&quot;, GroupName:=&quot;States&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;DockModeFloating&quot;, GroupName:=&quot;States&quot;)&gt;
Public Class C1DockTabItem
    Inherits C1TabItem</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_Docking_C1DockTabItem__ctor" data-uid="C1.WPF.Docking.C1DockTabItem.#ctor">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.-ctor.html#C1_WPF_Docking_C1DockTabItem__ctor">C1DockTabItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.Docking.C1DockTabItem.html">C1DockTabItem</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_Docking_C1DockTabItem_CanUserFloatProperty" data-uid="C1.WPF.Docking.C1DockTabItem.CanUserFloatProperty">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.CanUserFloatProperty.html">CanUserFloatProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Docking.C1DockTabItem.CanUserFloat.html#C1_WPF_Docking_C1DockTabItem_CanUserFloat">CanUserFloat</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_C1DockTabItem_DockTabHeaderContentProperty" data-uid="C1.WPF.Docking.C1DockTabItem.DockTabHeaderContentProperty">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.DockTabHeaderContentProperty.html">DockTabHeaderContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <span class="xref">C1.WPF.Docking.C1DockTabItem.DockTabHeaderContent</span> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_C1DockTabItem_SelectedHeaderTemplateProperty" data-uid="C1.WPF.Docking.C1DockTabItem.SelectedHeaderTemplateProperty">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.SelectedHeaderTemplateProperty.html">SelectedHeaderTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Docking.C1DockTabItem.SelectedHeaderTemplate.html#C1_WPF_Docking_C1DockTabItem_SelectedHeaderTemplate">SelectedHeaderTemplate</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_Docking_C1DockTabItem_CanUserFloat" data-uid="C1.WPF.Docking.C1DockTabItem.CanUserFloat">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.CanUserFloat.html#C1_WPF_Docking_C1DockTabItem_CanUserFloat">CanUserFloat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the user can change the <a class="xref" href="C1.WPF.Docking.DockMode.html">DockMode</a> property to <span class="xref">DockMode.Floating</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_C1DockTabItem_SelectedHeaderTemplate" data-uid="C1.WPF.Docking.C1DockTabItem.SelectedHeaderTemplate">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.SelectedHeaderTemplate.html#C1_WPF_Docking_C1DockTabItem_SelectedHeaderTemplate">SelectedHeaderTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a data template that is used to display the <span class="xref">Header</span> in the context of the
<span class="xref">C1DockTabControl</span> header banner.</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_Docking_C1DockTabItem_OnApplyTemplate" data-uid="C1.WPF.Docking.C1DockTabItem.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.OnApplyTemplate.html#C1_WPF_Docking_C1DockTabItem_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Docking.C1DockTabItem.html">C1DockTabItem</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_C1DockTabItem_OnMouseLeftButtonDown_System_Windows_Input_MouseButtonEventArgs_" data-uid="C1.WPF.Docking.C1DockTabItem.OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs)">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.OnMouseLeftButtonDown.html#C1_WPF_Docking_C1DockTabItem_OnMouseLeftButtonDown_System_Windows_Input_MouseButtonEventArgs_">OnMouseLeftButtonDown(MouseButtonEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called before the <span class="xref">MouseLeftButtonDown</span> event occurs.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_C1DockTabItem_OnSelected_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.Docking.C1DockTabItem.OnSelected(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.Docking.C1DockTabItem.OnSelected.html#C1_WPF_Docking_C1DockTabItem_OnSelected_System_Windows_RoutedEventArgs_">OnSelected(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Handle OnSelected event</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
