title: Set ItemsSource to ContentPresenter.Content
body: <p>I have tried this:</p>
  
  <pre><code>&lt;DataTemplate x:Key="RowItemTemplate"&gt;
      &lt;ItemsControl ItemTemplate="{StaticResource ResourceKey=BorderItemTemplate}" ItemsSource="ContentPresenter.Content"&gt;
      &lt;/ItemsControl&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>and it results in a stack overflow.  How to I set the ItemsSource of an ItemsControl to the content of the ContentPresenter?</p>
  
  <p>Edit:</p>
  
  <p>Changed <code>ItemsSource="ContentPresenter.Content"</code> to just <code>ItemsSource="{Binding}"</code> but I'm still getting a stack overflow.  The ItemsSource of the main ItemsControl is set to <code>new List&lt;List&lt;string&gt;&gt; { new List&lt;string&gt; { "1", "2", "3", "4" }, new List&lt;string&gt; { "1", "2", "3" }, new List&lt;string&gt; { "1", "2" }, new List&lt;string&gt; { "1" } };</code>  Here is a larger piece of my code:</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
      &lt;DataTemplate x:Key="BorderItemTemplate"&gt;
          &lt;Border RenderTransformOrigin="0.5,0.5"&gt;
              &lt;Border.RenderTransform&gt;
                  &lt;RotateTransform Angle="-135"/&gt;
              &lt;/Border.RenderTransform&gt;
              &lt;ContentPresenter/&gt;
          &lt;/Border&gt;
      &lt;/DataTemplate&gt;
      &lt;DataTemplate x:Key="RowItemTemplate"&gt;
          &lt;ItemsControl ItemTemplate="{StaticResource ResourceKey=BorderItemTemplate}" ItemsSource="{Binding}"&gt;
          &lt;/ItemsControl&gt;
      &lt;/DataTemplate&gt;
  &lt;/UserControl.Resources&gt;
  &lt;ItemsControl Name="comparisonGrid" ItemTemplate="{StaticResource ResourceKey=RowItemTemplate}"&gt;
  &lt;/ItemsControl&gt;
  </code></pre>