title: Print Visual, Pagination , MVVM Pattern.
body: <p>Im trying to print visual (or anything related) with pagination from a WPF element. I'm using a MVVM Pattern development.</p>
  
  <p>This is my visual layout. Where the user can scroll to view the pages.</p>
  
  <pre><code>  &lt;ScrollViewer&gt;
            &lt;StackPanel x:Name="Wrapper"&gt;
                &lt;StackPanel x:Name="PageOne" /&gt;
                &lt;StackPanel x:Name="PageTwo" /&gt;
            &lt;/StackPanel&gt;
    &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>The visual is passed via a Command Binding on a button.</p>
  
  <pre><code> &lt;Button Command="{Binding PrintCommand}" CommandParameter="{BindingElementName=Wrapper}"
  </code></pre>
  
  <p>The visual is passed to the print Method.</p>
  
  <pre><code>PrintDialog newDialog = new PrintDialog();
  
  newDialog.PrintVisual(MyVisualName, "Printing is Fun!");
  </code></pre>
  
  <p>I would like to paginate the two pages (and more), and also scale the visual to the paper, Whilst holding true to MVVM style.</p>
  
  <p>Thanks.</p>