title: How do i make the textboxes expand to fill the remaining space of the Grid Cell?
body: <p>I have the following window with some input <code>textboxes</code>. But these textboxes will not expand to fill the remaining space of the second column. Furthermore when the window resizes the <code>textboxes</code> doesn't <strong>resize</strong> accordingly, </p>
  
  <p>Here is my window </p>
  
  <p><img src="https://i.stack.imgur.com/0PFX8.jpg" alt="enter image description here"></p>
  
  <p>Here is my XAML markup </p>
  
  <pre><code>&lt;Window x:Class="WpfApplication8.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
  
      &lt;Grid ShowGridLines="True"&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="100"&gt;&lt;/ColumnDefinition&gt;
              &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="auto"&gt;&lt;/RowDefinition&gt;
              &lt;RowDefinition Height="auto"&gt;&lt;/RowDefinition&gt;
              &lt;RowDefinition Height="auto"&gt;&lt;/RowDefinition&gt;
              &lt;RowDefinition Height="auto"&gt;&lt;/RowDefinition&gt;
              &lt;RowDefinition Height="*"&gt;&lt;/RowDefinition&gt;
              &lt;RowDefinition Height="28"&gt;&lt;/RowDefinition&gt;
          &lt;/Grid.RowDefinitions&gt;
  
          &lt;Label Content="First Name" Grid.Column="0" Grid.Row="0"&gt;&lt;/Label&gt;
          &lt;Label Content="Last Name" Grid.Column="0" Grid.Row="1"&gt;&lt;/Label&gt;
          &lt;Label Content="Street Name" Grid.Column="0" Grid.Row="2"&gt;&lt;/Label&gt;
          &lt;Label Content="Suburb" Grid.Column="0" Grid.Row="3"&gt;&lt;/Label&gt;
          &lt;Label Content="City" Grid.Column="0" Grid.Row="4"&gt;&lt;/Label&gt;
  
          &lt;TextBox Width="313" Grid.Column="1" Margin="3" HorizontalAlignment="Left"/&gt;
          &lt;TextBox Width="313" Grid.Column="1" Grid.Row="1" Margin="3" 
                   HorizontalAlignment="Left" &gt;&lt;/TextBox&gt;
          &lt;TextBox Width="313" Grid.Column="1" Grid.Row="2" Margin="3" 
                   HorizontalAlignment="Left"&gt;&lt;/TextBox&gt;
          &lt;TextBox Width="313" Grid.Column="1" Grid.Row="3" Margin="3" 
                   HorizontalAlignment="Left"&gt;&lt;/TextBox&gt;
          &lt;TextBox Width="313" Grid.Column="1" Grid.Row="4" Margin="3"
                   HorizontalAlignment="Left"&gt;&lt;/TextBox&gt;
  
          &lt;StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="5" 
                      HorizontalAlignment="Right"&gt;
          &lt;Button Content="Save" Grid.Column="1" Grid.Row="5" Width="100" Margin="3" /&gt;
          &lt;Button Content="Exit" Grid.Column="1" Grid.Row="5" Width="100" 
                   HorizontalAlignment="Right" Margin="3"&gt;&lt;/Button&gt;
          &lt;/StackPanel&gt;
          &lt;!--&lt;TextBox Width="313" Grid.Column="1"&gt;&lt;/TextBox&gt;--&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <ol>
  <li>Is there away to expand the <code>textboxes</code> to fill the remaining space in the second column?</li>
  <li>Is there away to make the <code>textboxes</code> resize with the form resize?</li>
  </ol>