Opening a PDF file from within a WPF application
<p>I have a WPF application in which the GUI displays a few different aspects of the application to the user, using a different <code>tab</code> for each part of the application. I am now looking to add the functionality to load and view document from within the application on one of the tabs.</p>

<p>I have added a <code>DocumentViewer</code> to the tab, and can see that it is displayed in the GUI when I run my application, but I'm not sure how to get that <code>DocumentViewer</code> to load/ display a document, and can't seem to find any method calls/ markup that enable you to do this.</p>

<p>The XAML markup I am using to add the <code>DocumentViewer</code> to my application is:</p>

<pre><code>&lt;TabItem Header="Document Viewer"&gt;
    &lt;StackPanel&gt;
        &lt;DocumentViewer x:Name="docViewer" Height="643" Margin="0,0,-0.4,0"/&gt;
            &lt;DocumentViewer x:Name="documentViewer" Height="1" Margin="0,0,-0.4,0" RenderTransformOrigin="0.5,0.5"&gt;
                &lt;DocumentViewer.RenderTransform&gt;
                    &lt;TransformGroup&gt;
                        &lt;ScaleTransform ScaleY="-1"/&gt;
                        &lt;SkewTransform/&gt;
                        &lt;RotateTransform/&gt;
                        &lt;TranslateTransform/&gt;
                    &lt;/TransformGroup&gt;
                &lt;/DocumentViewer.RenderTransform&gt;
            &lt;/DocumentViewer&gt;
    &lt;/StackPanel&gt;
&lt;/TabItem&gt;
</code></pre>

<p>How do I point this <code>DocumentViewer</code> to a PDF (or .doc, or whatever) file that's located on my computer, so that it will load and display that document inside my application window?</p>