# C1.WPF.Docking.WPFWindow

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Docking_WPFWindow" data-uid="C1.WPF.Docking.WPFWindow" class="text-break">WPFWindow Class
</h1>
  <div class="markdown level0 summary"><p>A custom control that inherits <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.window">Window</a>, used internally by <a class="xref" href="C1.WPF.Docking.C1DockControl.html">C1DockControl</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.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="https://learn.microsoft.com/dotnet/api/system.windows.window">Window</a></div>
    <div class="level7"><span class="xref">WPFWindow</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.Docking.html">C1.WPF.Docking</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Docking.dll</h6>
  <h5 id="C1_WPF_Docking_WPFWindow_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;ContentBorder&quot;, Type = typeof(Border))]
[TemplatePart(Name = &quot;CommonHeaderContainer&quot;, Type = typeof(Border))]
[TemplatePart(Name = &quot;HiddenButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;RectTopLeft&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;RectTopMiddle&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;RectTopRight&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;RectMiddleLeft&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;RectMiddleRight&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;RectBottomLeft&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;RectBottomMiddle&quot;, Type = typeof(FrameworkElement))]
[TemplatePart(Name = &quot;RectBottomRight&quot;, Type = typeof(FrameworkElement))]
public class WPFWindow : Window, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;ContentBorder&quot;, Type:=GetType(Border))&gt;
&lt;TemplatePart(Name:=&quot;CommonHeaderContainer&quot;, Type:=GetType(Border))&gt;
&lt;TemplatePart(Name:=&quot;HiddenButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;RectTopLeft&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;RectTopMiddle&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;RectTopRight&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;RectMiddleLeft&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;RectMiddleRight&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;RectBottomLeft&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;RectBottomMiddle&quot;, Type:=GetType(FrameworkElement))&gt;
&lt;TemplatePart(Name:=&quot;RectBottomRight&quot;, Type:=GetType(FrameworkElement))&gt;
Public Class WPFWindow
    Inherits Window
    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_Docking_WPFWindow__ctor" data-uid="C1.WPF.Docking.WPFWindow.#ctor">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.-ctor.html#C1_WPF_Docking_WPFWindow__ctor">WPFWindow()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Docking.WPFWindow.html">WPFWindow</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_Docking_WPFWindow_ShowHeaderProperty" data-uid="C1.WPF.Docking.WPFWindow.ShowHeaderProperty">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.ShowHeaderProperty.html">ShowHeaderProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Docking.WPFWindow.ShowHeader.html#C1_WPF_Docking_WPFWindow_ShowHeader">ShowHeader</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_WPFWindow_IsDisposed" data-uid="C1.WPF.Docking.WPFWindow.IsDisposed">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.IsDisposed.html#C1_WPF_Docking_WPFWindow_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this instance is disposed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_WPFWindow_ShowHeader" data-uid="C1.WPF.Docking.WPFWindow.ShowHeader">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.ShowHeader.html#C1_WPF_Docking_WPFWindow_ShowHeader">ShowHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the common header is visible.</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_WPFWindow_Dispose" data-uid="C1.WPF.Docking.WPFWindow.Dispose">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.Dispose.html#C1_WPF_Docking_WPFWindow_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_WPFWindow_Dispose_System_Boolean_" data-uid="C1.WPF.Docking.WPFWindow.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.Dispose.html#C1_WPF_Docking_WPFWindow_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_WPFWindow_Finalize" data-uid="C1.WPF.Docking.WPFWindow.Finalize">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.Finalize.html#C1_WPF_Docking_WPFWindow_Finalize">Finalize()</a>
        </td>
        <td class="markdown level1 summary"><p>Finalizes this instance of the <a class="xref" href="C1.WPF.Docking.WPFWindow.html">WPFWindow</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Docking_WPFWindow_OnApplyTemplate" data-uid="C1.WPF.Docking.WPFWindow.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Docking.WPFWindow.OnApplyTemplate.html#C1_WPF_Docking_WPFWindow_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
