title: WPF - Display Items Control inline with parent content
body: <p>I am tring to create a layout in wpf that will display a parent class Name and then a list of attributes associated to the parent class.  I am using the parent as the root DataContext and then binding an ItemsControl to the child list of Attributes.</p>
  
  <p>I would like the display to be something like below so that when the line wraps it will display the next Attribute under the title "ParentName - "</p>
  
  <p>ParentName - Attribute1, Attribute2, Attribute3
  Attribute4, Attribute5 and Attribute6</p>
  
  <p>My problem is I can not figure out how to make "ParentName" run inline with the attributes so it always comes out with the following line indented to match the first Attribute horizontally, not the "ParentName -" component as I would wish.</p>
  
  <p>Are there any containers that allow such a thing?  It seems like all avaailable containers are like HTML block elements.  I would very much like to do this through XAML and not code behind.</p>
  
  <pre><code>&lt;DataTemplate x:Key="ItemDisplay"&gt;
      &lt;WrapPanel Orientation="Horizontal" Grid.Column="3"&gt;
      &lt;TextBlock Text="{Binding Description}" VerticalAlignment="Bottom"/&gt;
      &lt;ItemsControl Name="ToppingModificationsItemControl" ItemsSource="{Binding ItemAttributes}" VerticalAlignment="Bottom"&gt;
           &lt;ItemsControl.ItemTemplate&gt;
               &lt;DataTemplate&gt;
                   &lt;WrapPanel Orientation="Horizontal"&gt;
                       &lt;TextBlock Text="{Binding AttributeName}" VerticalAlignment="Bottom"/&gt;
                   &lt;/WrapPanel&gt;
               &lt;/DataTemplate&gt;
           &lt;/ItemsControl.ItemTemplate&gt;
   &lt;/ItemsControl&gt;
     &lt;/WrapPanel&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>I can't include the actual code I'm working on, but I'm hoping the above example will illustrate what I'm trying to accomplish.  For the item being rendered you could assume a class with a String property for Description and a collection of Strings in a property called Item Attributes.</p>
  
  <p>Would like to see</p>
  
  <pre><code>ItemDescription - Attribute1, Attribute2, Attribute3
  Attribute4, Attribute5
  </code></pre>
  
  <p>not</p>
  
  <pre><code>ItemDescription - Attribute1, Attribute2, Attribute3
                    Attribute4, Attribute5
  </code></pre>
  
  <p>Thanks.</p>