title: How do I make an empty TextBox stretch vertically?
body: <p>I want to make a ListBox that arranges items horizontally. Each item should be a TextBox, and it should fill the list box vertically regardless how how much text is there. If you've used Tweetdeck, I'm aiming for a similar effect. Here's what I've got:</p>
  
  <pre><code>    &lt;ListBox 
          Background ="DarkGray"
          ScrollViewer.HorizontalScrollBarVisibility="Auto" 
          ScrollViewer.VerticalScrollBarVisibility="Disabled"
          ItemsSource="{Binding Path=Items}"&gt;
          &lt;ListBox.ItemsPanel&gt;
              &lt;ItemsPanelTemplate&gt;
                  &lt;DockPanel IsItemsHost="True"/&gt;
              &lt;/ItemsPanelTemplate&gt;
          &lt;/ListBox.ItemsPanel&gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;Border BorderBrush="Gray" BorderThickness="2" CornerRadius="5" Margin="2,0,2,0"&gt;
                      &lt;Grid Width="250"&gt;
                          &lt;Grid.ColumnDefinitions&gt;
                              &lt;ColumnDefinition Width="*" /&gt;
                          &lt;/Grid.ColumnDefinitions&gt;
                          &lt;Grid.RowDefinitions&gt;
                              &lt;RowDefinition Height="*" /&gt;
                          &lt;/Grid.RowDefinitions&gt;
                          &lt;TextBox 
                              Grid.Row="0"
                              Grid.Column="0"
                              VerticalAlignment="Stretch"
                              Text="{Binding Path=Messages, Mode=OneWay}"  /&gt;
                      &lt;/Grid&gt;
                  &lt;/Border&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListBox.ItemTemplate&gt;
      &lt;/ListBox&gt;
  </code></pre>
  
  <p>What happens is that the TextBox stubbornly fits the text in it, rather than stretching vertically. I've tried switching the Grid for a DockPanel, which didn't help. I could bind the TextBox's Height property, but that seems unpleasant. </p>
  
  <p>Is there a trick to this that I've missed?</p>