title: WPF user control does not resize with main window
body: <p>I'm trying to make a WPF user control that includes two group boxes and two <code>ListView</code>s in each group box. Here is the XAML code for the user control:</p>
  
  <pre><code>
      &lt;UserControl x:Class="TestGroupControl.TestGroupControl"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Height="500" Width="700" MinWidth="300" MinHeight="200"&gt;
          &lt;Grid&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="225*" /&gt;
                  &lt;RowDefinition Height="225*" /&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;GroupBox Grid.Row="0" Header="Test Data" Margin="2,2,2,2" Name="testDataGroupBox"&gt;
                  &lt;Grid&gt;
                      &lt;ListView Margin="2,2,2,2" Name="testDataListView" &gt;&lt;/ListView&gt;
                  &lt;/Grid&gt;
              &lt;/GroupBox&gt;
              &lt;GroupBox Grid.Row="1" Header="Test Parameters" Margin="2,2,2,2" Name="testParametersGroupBox"&gt;
                  &lt;Grid&gt;
                      &lt;ListView Margin="2,2,2,2" Name="testParametersListView" &gt;&lt;/ListView&gt;
                  &lt;/Grid&gt;
              &lt;/GroupBox&gt;
          &lt;/Grid&gt;
      &lt;/UserControl&gt;
  </code></pre>
  
  <p>The problem I am facing is that when I try to resize the main window holding the user control, the user control won't follow the parent window and resize as well.</p>
  
  <p>Any thoughts are appreciated. Thank you.</p>