title: Listboxitem not aligning items properly
body: <p>Ok I got the following DataTemplate:</p>
  
  <pre><code> Style="{StaticResource LBStyle}" HorizontalContentAlignment="Stretch"&gt;
                  &lt;ListBox.ItemTemplate&gt;
  
                      &lt;DataTemplate&gt;
                          &lt;Grid &gt;
                              &lt;Grid.ColumnDefinitions&gt;
                                  &lt;ColumnDefinition Width="1*"/&gt; 
                                  &lt;ColumnDefinition Width="100" /&gt;
                              &lt;/Grid.ColumnDefinitions&gt;
                              &lt;Label Content="{Binding Name}" x:Name="txt" Grid.Column="0"&gt;&lt;/Label&gt;
                              &lt;StackPanel Orientation="Vertical" Grid.Column="1"&gt;
                                  &lt;StackPanel Orientation="Horizontal"&gt;
                                      &lt;TextBlock Text="{z:txt text=time}" Width="50"&gt;:&lt;/TextBlock&gt;
                                      &lt;TextBlock Text="{Binding Path=Value, Converter={StaticResource DecFix}}" /&gt;
                                  &lt;/StackPanel&gt;
  
                                  &lt;StackPanel Orientation="Horizontal" Width="50"&gt;
                                      &lt;TextBlock Text="Norm."&gt;:&lt;/TextBlock&gt;
                                      &lt;TextBlock Text="{Binding Path=NormaalWaarde, Converter={StaticResource DecFix}}" /&gt;
                                  &lt;/StackPanel&gt;
                              &lt;/StackPanel&gt;
                          &lt;/Grid&gt;
  
                          &lt;DataTemplate.Triggers&gt;
                              &lt;DataTrigger Binding="{Binding IsCurrentStep}" Value="True"&gt;
                                  &lt;Setter TargetName="txt" Property="FontWeight" Value="Bold"/&gt;
                              &lt;/DataTrigger&gt; 
                          &lt;/DataTemplate.Triggers&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/ListBox.ItemTemplate&gt;
  </code></pre>
  
  <p>Basically what I want is for each item to have some text on the left side, which stretches with the width of the listbox and 2 values on the right side, which stays on the right side.
  I've tried this with many different kind of panels, grids etc. And they all seem to just put the values on the right side wrapped together to the text on the left side like this:</p>
  
  <p><a href="http://www.deevelop.com/wrong.jpg" rel="nofollow noreferrer">link text</a>
  (please use the link to see what I mean, I cannot post pictures yet)</p>
  
  <p>If i put the same datatemplate standalone somewhere else it just does what it should do. Does anyone have a suggestion?</p>
  
  <p>Edit: I put a gridsplitter between the listbox and the rest of the window and it looks like the listbox is stretching indefinately. This is how the listbox is positioned amongst other elements in my window: (the listbox is in the tagger usercontrol)</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="1*"/&gt;
          &lt;ColumnDefinition Width="2.5*"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Grid.RowDefinitions&gt;           
          &lt;RowDefinition/&gt;
      &lt;/Grid.RowDefinitions&gt;
  
      &lt;vid:TagControl x:Name="Tagger" Grid.Column="0"&gt;&lt;/vid:TagControl&gt;
  
      &lt;GridSplitter ResizeDirection="Columns" Width="20" /&gt;
  
      &lt;vid:DShowPlayer x:Name="DShowPlayer1" Grid.Column="1"&gt;&lt;/vid:DShowPlayer&gt;
  &lt;/Grid&gt;
  </code></pre>