title: WPF Repeater (like) control for collection source?
body: <p>I have a WPF <code>DataGrid</code> bound to <code>ObservableCollection</code>. 
  Each item in my collection has Property which is a <code>List&lt;someObject&gt;</code>. 
  In my row details pane, I would like to write out formatted text blocks for each item in this collection. The end result would be something equivalent to:</p>
  
  <pre><code>&lt;TextBlock Style="{StaticResource NBBOTextBlockStyle}" HorizontalAlignment="Right"&gt;
  &lt;TextBlock.Inlines&gt;
      &lt;Run FontWeight="Bold" Text="{Binding Path=Exchanges[0].Name}" /&gt;
      &lt;Run FontWeight="Bold" Text="{Binding Path=Exchanges[0].Price}" /&gt;
      &lt;LineBreak /&gt;
      &lt;Run Foreground="LightGray" Text="{Binding Path=Exchanges[0].Quantity}" /&gt;
  &lt;/TextBlock.Inlines&gt;
  &lt;/TextBlock&gt;
  &lt;TextBlock Style="{StaticResource NBBOTextBlockStyle}"&gt;
  &lt;TextBlock.Inlines&gt;
      &lt;Run FontWeight="Bold" Text="{Binding Path=Exchanges[1].Name}" /&gt;
      &lt;Run FontWeight="Bold" Text="{Binding Path=Exchanges[1].Price}" /&gt;
      &lt;LineBreak /&gt;
      &lt;Run Foreground="LightGray" Text="{Binding Path=Exchanges[1].Quantity}" /&gt;
  &lt;/TextBlock.Inlines&gt;
  &lt;/TextBlock&gt;
  </code></pre>
  
  <p>and so on 0-n times. </p>
  
  <p>I've tried using <code>ItemsControl</code> for this:</p>
  
  <pre><code>&lt;ItemsControl ItemsSource="{Binding Path=Exchanges}"&gt;
      &lt;DataTemplate&gt;
          &lt;Label&gt;test&lt;/Label&gt;
      &lt;/DataTemplate&gt;
  &lt;/ItemsControl&gt;
  </code></pre>
  
  <p>however, this appears to be only meant for more static sources, as it throws the following exception (collection is not altered after creation):</p>
  
  <blockquote>
    <p>ItemsControl Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead*</p>
  </blockquote>
  
  <p>Is there another way to achieve this?</p>