title: Making a grid in a ListView ItemTemplate fill
body: <p>I have a ListView which has a data template based on a grid. The xaml is as follows:</p>
  
  <pre><code>&lt;ListView ItemsSource="{Binding SomeItemSource}" HorizontalAlignment="Stretch" Height="281"&gt;
      &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;Grid HorizontalAlignment="Stretch" Margin="3" Width="Auto"&gt; 
                  &lt;Grid.RowDefinitions&gt;
                      &lt;RowDefinition&gt;&lt;/RowDefinition&gt;
                      &lt;RowDefinition&gt;&lt;/RowDefinition&gt;
                  &lt;/Grid.RowDefinitions&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width="70"&gt;&lt;/ColumnDefinition&gt;
                      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
                  &lt;!-- Grid content here --&gt;
                  &lt;TextBlock Text="SomeTextbox" 
                             Margin="5,5,0,0"/&gt;
  
                  &lt;TextBox Grid.Column="1" 
                           Margin="0,5,0,0"
                           Text="{Binding SomeProperty, Mode=TwoWay}"
                           HorizontalAlignment="Left"
                           Width="90"/&gt;
  
                  &lt;TextBlock Text="AnotherText" 
                             Grid.Column="0" 
                             Grid.Row="1"
                             Margin="5,5,0,0"/&gt;
  
                  &lt;TextBox Grid.Column="1" Grid.Row="1"
                           Margin="0,5,0,0"
                           Text="{Binding AnotherProperty, Mode=TwoWay}" 
                           HorizontalAlignment="Stretch"
                           Width="300"/&gt;
              &lt;/Grid&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>What I want, is for the grid to fill (stretch over) the entire horizontal width of the parent ListView, however it currently wraps to the width of the sum of its contents. How can I achieve the behavior I want?</p>