title: WPF TabItem Grid Contents Disappear Halfway Down
body: <p>I have a strange problem. I have a TabControl created like so:</p>
  
  <pre><code>&lt;TabControl HorizontalAlignment="Stretch" Name="tabControl" VerticalAlignment="Stretch" FontSize="10"&gt;
  ...
  &lt;/TanControl&gt;
  </code></pre>
  
  <p>with a few tabs created like so:</p>
  
  <pre><code>&lt;TabItem Header="XXXX" Name="tab1"&gt;
  ...
  &lt;/TabItem&gt;
  </code></pre>
  
  <p>Inside each tab I have a grid, following the code generated by the toolbox drag and drop, I started adding data to the first control like so:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="*" /&gt;
          &lt;ColumnDefinition Width="*" /&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,6" Height="28" HorizontalAlignment="Right" Name="label001" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,34" Height="28" HorizontalAlignment="Right" Name="label002" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,62" Height="28" HorizontalAlignment="Right" Name="label003" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,90" Height="28" HorizontalAlignment="Right" Name="label004" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,130" Height="28" HorizontalAlignment="Right" Name="label005" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,158" Height="28" HorizontalAlignment="Right" Name="label006" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,186" Height="28" HorizontalAlignment="Right" Name="label007" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,226" Height="28" HorizontalAlignment="Right" Name="label008" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,254" Height="28" HorizontalAlignment="Right" Name="label009" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="1" Content="XXXX" Margin="1,254" Height="28" HorizontalAlignment="Left" Name="lbl1" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="0" Content="XXXX:" Margin="1,282" Height="28" HorizontalAlignment="Right" Name="label010" VerticalAlignment="Top" FontSize="12" /&gt;
      &lt;Label Grid.Column="1" Content="XXXX" Margin="1,282" Height="28" HorizontalAlignment="Left" Name="lbl2" VerticalAlignment="Top" FontSize="12" /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>The problem is, after a label is placed farther down than halfway in the grid, it disappears. If I resize the window to be bigger, I can see more items because they are no longer past halfway, if I make it smaller then more disappear because they pass the halfway point.</p>
  
  <p>I have tried adding rows to the grid and they still disappear! The strange part is if I add n rows and split the labels up between them, each row gets cut off at the halfway point in each row.</p>
  
  <p>This problem also shows in the design view, but only if a vertical limit is imposed like row height or window max height (because the design view stretches the containers to fit all the contents as I add them).</p>
  
  <p>And finally, the columns never disappear halfway no matter how small they get.</p>