# C1.WPF.Extended.PropertyBox.MeasureOverride

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Extended_PropertyBox_MeasureOverride_" data-uid="C1.WPF.Extended.PropertyBox.MeasureOverride*">MeasureOverride Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Extended_PropertyBox_MeasureOverride_" data-uid="C1.WPF.Extended.PropertyBox.MeasureOverride*"></a>
<h4 id="C1_WPF_Extended_PropertyBox_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.Extended.PropertyBox.MeasureOverride(System.Windows.Size)">MeasureOverride(Size)</h4>
<div class="markdown level1 summary"><p>Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.</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 object can give to child objects. Infinity (<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.positiveinfinity">PositiveInfinity</a>) can be specified as a value to indicate that the object 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 object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control.measureoverride">Control.MeasureOverride(Size)</a></div>
</div>
