title: View PdfSharp document in a WPF control
body: <p>I'm using the companion <a href="http://www.pdfsharp.net" rel="nofollow">MigraDoc and PdfSharp libraries</a> to generate a report.</p>
  
  <p>The <a href="http://www.pdfsharp.net/PDFsharpFeatures.ashx" rel="nofollow">PdfSharp documentation</a> repeatedly refers to WPF and talks about you can "draw on a PDF page as well as in a window", but I can't figure out how to view my <code>PdfDocument</code> in a viewer. All of the examples just kick the rendering off to another program by opening the documents with <code>Process.Start()</code>.</p>
  
  <p>Do either of these libraries include WPF controls for viewing the documents? Ideally I'm looking for a basic document viewer control, similar to the built-in <code>RichTextEditor</code> viewer for <code>FlowDocuments</code>.</p>
  
  <p>(I'm using the PdfSharp and MigraDoc libraries that are distributed through NuGet.)</p>