# C1.WPF.Ribbon.ToolStripPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Ribbon_ToolStripPanel" data-uid="C1.WPF.Ribbon.ToolStripPanel" class="text-break">ToolStripPanel Class
</h1>
  <div class="markdown level0 summary"><p>This is the main panel that show the visible (non-overflow) items.</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.panel">Panel</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.virtualizingpanel">VirtualizingPanel</a></div>
    <div class="level6"><span class="xref">ToolStripPanel</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.Ribbon.html">C1.WPF.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Ribbon.dll</h6>
  <h5 id="C1_WPF_Ribbon_ToolStripPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ToolStripPanel : VirtualizingPanel, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ToolStripPanel
    Inherits VirtualizingPanel
    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_Ribbon_ToolStripPanel__ctor" data-uid="C1.WPF.Ribbon.ToolStripPanel.#ctor">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.-ctor.html#C1_WPF_Ribbon_ToolStripPanel__ctor">ToolStripPanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.html">ToolStripPanel</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_Ribbon_ToolStripPanel_MaxToolCountProperty" data-uid="C1.WPF.Ribbon.ToolStripPanel.MaxToolCountProperty">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.MaxToolCountProperty.html">MaxToolCountProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.MaxToolCount.html#C1_WPF_Ribbon_ToolStripPanel_MaxToolCount">MaxToolCount</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_OrientationProperty" data-uid="C1.WPF.Ribbon.ToolStripPanel.OrientationProperty">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.OrientationProperty.html">OrientationProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.Orientation.html#C1_WPF_Ribbon_ToolStripPanel_Orientation">Orientation</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_Ribbon_ToolStripPanel_IsDisposed" data-uid="C1.WPF.Ribbon.ToolStripPanel.IsDisposed">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.IsDisposed.html#C1_WPF_Ribbon_ToolStripPanel_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this instance is disposed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_MaxToolCount" data-uid="C1.WPF.Ribbon.ToolStripPanel.MaxToolCount">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.MaxToolCount.html#C1_WPF_Ribbon_ToolStripPanel_MaxToolCount">MaxToolCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or Sets the maximum number of tools that can be shown inline. The rest will be shown in the overflow menu.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_NeedsOverflow" data-uid="C1.WPF.Ribbon.ToolStripPanel.NeedsOverflow">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.NeedsOverflow.html#C1_WPF_Ribbon_ToolStripPanel_NeedsOverflow">NeedsOverflow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets true if not all the items were laid out.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_Orientation" data-uid="C1.WPF.Ribbon.ToolStripPanel.Orientation">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.Orientation.html#C1_WPF_Ribbon_ToolStripPanel_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the orientation of the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_ShownItemsCount" data-uid="C1.WPF.Ribbon.ToolStripPanel.ShownItemsCount">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.ShownItemsCount.html#C1_WPF_Ribbon_ToolStripPanel_ShownItemsCount">ShownItemsCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of displayed items.</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_Ribbon_ToolStripPanel_ArrangeOverride_System_Windows_Size_" data-uid="C1.WPF.Ribbon.ToolStripPanel.ArrangeOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.ArrangeOverride.html#C1_WPF_Ribbon_ToolStripPanel_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_Dispose" data-uid="C1.WPF.Ribbon.ToolStripPanel.Dispose">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.Dispose.html#C1_WPF_Ribbon_ToolStripPanel_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_Dispose_System_Boolean_" data-uid="C1.WPF.Ribbon.ToolStripPanel.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.Dispose.html#C1_WPF_Ribbon_ToolStripPanel_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_Finalize" data-uid="C1.WPF.Ribbon.ToolStripPanel.Finalize">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.Finalize.html#C1_WPF_Ribbon_ToolStripPanel_Finalize">Finalize()</a>
        </td>
        <td class="markdown level1 summary"><p>Finalizes this instance of the <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.html">ToolStripPanel</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_GetLayoutClip_System_Windows_Size_" data-uid="C1.WPF.Ribbon.ToolStripPanel.GetLayoutClip(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.GetLayoutClip.html#C1_WPF_Ribbon_ToolStripPanel_GetLayoutClip_System_Windows_Size_">GetLayoutClip(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.Ribbon.ToolStripPanel.MeasureOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.MeasureOverride.html#C1_WPF_Ribbon_ToolStripPanel_MeasureOverride_System_Windows_Size_">MeasureOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Ribbon_ToolStripPanel_OnApplyTemplate" data-uid="C1.WPF.Ribbon.ToolStripPanel.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Ribbon.ToolStripPanel.OnApplyTemplate.html#C1_WPF_Ribbon_ToolStripPanel_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
