title: WPF Grid is not stretching vertically
body: <p>I've the following <code>Grid</code> in the main window:</p>
  
  <pre><code>&lt;Grid Name="gridMain" Width="Auto" VerticalAlignment="Stretch" Height="Auto"&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I'm adding a <code>UserControl</code> dynamically in the grid. The main window only has this grid. I want the grid to be stretched both horizontally and vertically and should fill up entire window. The grid is stretching horizontally but <strong>doesn't stretch vertically</strong>. Any idea why? What do I need to do to make the grid stretch vertically?</p>
  
  <p>EDIT</p>
  
  <p>Here is the complete XAML.</p>
  
  <pre><code>&lt;Window x:Class="Sensitech.TurboValidator.UserControls.ConveyorBelt"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="ConveyorBelt" Height="329" Width="714" xmlns:my="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"&gt;
      &lt;Grid Name="gridMain" Width="Auto" VerticalAlignment="Stretch" Height="Auto" Background="Cyan"&gt;
  
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>