# C1.WPF.Extended.C1AccordionPanel.MeasureOverride

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Extended_C1AccordionPanel_MeasureOverride_" data-uid="C1.WPF.Extended.C1AccordionPanel.MeasureOverride*">MeasureOverride Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Extended_C1AccordionPanel_MeasureOverride_" data-uid="C1.WPF.Extended.C1AccordionPanel.MeasureOverride*"></a>
<h4 id="C1_WPF_Extended_C1AccordionPanel_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.Extended.C1AccordionPanel.MeasureOverride(System.Windows.Size)">MeasureOverride(Size)</h4>
<div class="markdown level1 summary"><p>When overridden in a derived class, measures the size in layout required for child elements and determines a size for the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a>-derived class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override Size MeasureOverride(Size availableSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function MeasureOverride(availableSize As Size) As Size</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.size">Size</a></td>
      <td><span class="parametername">availableSize</span></td>
      <td><p>The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.size">Size</a></td>
      <td><p>The size that this element determines it needs during layout, based on its calculations of child element sizes.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement.measureoverride">FrameworkElement.MeasureOverride(Size)</a></div>
</div>
