title: Let WPF Tabcontrol height assume height of largest item?
body: <p>Is there any way to have to tabcontrol take the size of the largest tab item (well, actually, the tabitem's content)?</p>
  
  <p>Since the tabcontrol has no specific size assigned it should autosize: it does that correctly, but when you switch tabs it automatically resizes itself to the height (and width) of the contents of the currently selected tab.</p>
  
  <p>I don't want the resizing to happen, and let the tabcontrol assume the height of the largest item, but still have it autosize itself.</p>
  
  <p>Any clues? I tried databinding to the <code>Height</code> property of each element used as content to the  using a multibinding, with bindings on both the <code>ActualHeight</code> and the <code>Items</code> properties of the Tabcontrol. But alas, the <code>ActualHeight</code> of the content elements is always 0. </p>
  
  <pre><code>        &lt;TabItem Header="Core" &gt; 
              &lt;Grid Margin="5"&gt;
                  &lt;Grid.Height&gt;
                      &lt;MultiBinding Converter="{Converters1:AllTabContentEqualHeightConverter}"&gt;
                          &lt;Binding Path="ActualHeight" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type TabControl}}"/&gt;
                          &lt;Binding Path="Items" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type TabControl}}"/&gt;
                      &lt;/MultiBinding&gt;
                  &lt;/Grid.Height&gt;
  
              ...
  </code></pre>
  
  <p>Can this be done?</p>