title: WPF FlowDocument with ItemsPresenter
body: <p>I am using the bindable FlowDocument items control found here: </p>
  
  <p><a href="http://msdn.microsoft.com/en-us/magazine/dd569761.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/magazine/dd569761.aspx</a></p>
  
  <p>It works perfectly as advertised; however, I was hoping to expand on it. I want to be able to specify an ItemsPresenter for the ItemsPanel, the same way you would for an ItemsControl. My goal is to include a footer for the table.</p>
  
  <p>Using the example on the site:</p>
  
  <pre><code>&lt;flowdoc:ItemsContent ItemsSource="{Binding Source=  {StaticResource  DataSource},XPath=FortressGuys/Person}" &gt;
  &lt;flowdoc:ItemsContent.ItemsPanel&gt;
      &lt;DataTemplate&gt;
          &lt;flowdoc:Fragment&gt;
              &lt;Table BorderThickness="1" BorderBrush="Black"&gt;
                  &lt;TableRowGroup flowdoc:Attached.IsItemsHost="True"&gt;
                      &lt;TableRow Background="LightBlue"&gt;
                          &lt;TableCell&gt;
                              &lt;Paragraph&gt;First name&lt;/Paragraph&gt;
                          &lt;/TableCell&gt;
                          &lt;TableCell&gt;
                              &lt;Paragraph&gt;Last name&lt;/Paragraph&gt;
                          &lt;/TableCell&gt;
                      &lt;/TableRow&gt;
                  &lt;/TableRowGroup&gt;
  
                  &lt;TableRowGroup&gt;
  
                  &lt;!-- ITEMS PRESENTER --&gt;
  
                  &lt;/TableRowGroup&gt;
  
                  &lt;TableRowGroup&gt;
                      &lt;TableRow&gt;
                         &lt;TableCell&gt;
                           &lt;Paragraph&gt;My Amazing Footer&lt;/Paragraph&gt;
                         &lt;/TableCell&gt;
                       &lt;/TableRow&gt;
                   &lt;/TableRowGroup&gt;
              &lt;/Table&gt;
          &lt;/flowdoc:Fragment&gt;
      &lt;/DataTemplate&gt;
  &lt;/flowdoc:ItemsContent.ItemsPanel&gt;
  &lt;flowdoc:ItemsContent.ItemTemplate&gt;
      &lt;DataTemplate&gt;
          &lt;flowdoc:Fragment&gt;
              &lt;TableRow&gt;
                  &lt;TableCell&gt;
                      &lt;Paragraph&gt;
                          &lt;flowdoc:BindableRun BoundText="{Binding XPath=@FirstName}" /&gt;
                      &lt;/Paragraph&gt;
                  &lt;/TableCell&gt;
                  &lt;TableCell&gt;
                      &lt;Paragraph&gt;
                          &lt;flowdoc:BindableRun BoundText="{Binding XPath=@LastName}"/&gt;
                      &lt;/Paragraph&gt;
                  &lt;/TableCell&gt;
              &lt;/TableRow&gt;
          &lt;/flowdoc:Fragment&gt;
      &lt;/DataTemplate&gt;
  &lt;/flowdoc:ItemsContent.ItemTemplate&gt;
  &lt;/flowdoc:ItemsContent&gt;
  </code></pre>
  
  <p>Which would ultimately look something like this:</p>
  
  <pre><code>First Name   Last Name
  ----------------------
  Nancy        Davolio
  Andrew       Fuller
  ----------------------
  My Awesome Footer
  </code></pre>
  
  <p>Does anyone know how this would be accomplished?</p>