title: WPF XAML compile error- the name does not exist in the namespace
body: <p>I am trying to add the capability to view a PDF file from within my WPF application.</p>
  <p>I have been following the tutorial at: <a href="http://www.codeproject.com/Articles/579878/MoonPdfPanel-A-WPF-based-PDF-Viewer-Control#include" rel="nofollow noreferrer">http://www.codeproject.com/Articles/579878/MoonPdfPanel-A-WPF-based-PDF-Viewer-Control#include</a>, and am at the section titled &quot;Including MoonPdfPanel in your Application&quot;.</p>
  <p>I have the following XAML:</p>
  <pre><code>&lt;Window x:Class=&quot;DocumentViewer.MainWindow&quot;
      xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
      xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
      xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;
      xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
      xmlns:local=&quot;clr-namespace:DocumentViewer&quot;
      xmlns:mpp=&quot;DocumentViewer:MoonPdfLib;assembly=MoonPdfLib&quot;
      mc:Ignorable=&quot;d&quot;
      Title=&quot;MainWindow&quot; Height=&quot;350&quot; Width=&quot;525&quot;&gt;
    &lt;DockPanel&gt;
      &lt;mpp:MoonPdfPanel Background=&quot;LightGray&quot; ViewType=&quot;SinglePage&quot; PageDisplay=&quot;ContinuousPages&quot; PageMargin=&quot;0,2,4,2&quot; AllowDrop=&quot;True&quot;/&gt;
  
      &lt;Grid DockPanel.Dock=&quot;Top&quot;&gt;
          &lt;Menu x:Name=&quot;menu&quot; IsMainMenu=&quot;True&quot; HorizontalAlignment=&quot;Left&quot; Height=&quot;20&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;518&quot;&gt;
              &lt;MenuItem Header=&quot;_File&quot;&gt;
                  &lt;MenuItem x:Name=&quot;loadDocument&quot; Header=&quot;Load Document&quot; Click=&quot;openFileMenuItem_click&quot;&gt;&lt;/MenuItem&gt;
                  &lt;Separator /&gt;
                  &lt;MenuItem x:Name=&quot;exit&quot; Header=&quot;Exit&quot; Click=&quot;exitApplication_click&quot;&gt;&lt;/MenuItem&gt;
              &lt;/MenuItem&gt;
          &lt;/Menu&gt;
      &lt;/Grid&gt;
      &lt;Grid x:Name=&quot;browserHost&quot; DockPanel.Dock=&quot;Top&quot;   Margin=&quot;0,0,0,0&quot;&gt;
      &lt;/Grid&gt;
      &lt;!--mpp:MoonPdfPanel x:Name=&quot;PdfPanel&quot; Background=&quot;LightGray&quot; ViewType=&quot;SinglePage&quot; PageMargin=&quot;0,2,4,2&quot; AllowDrop=&quot;True&quot; /--&gt;
      &lt;!--mpp:MoonPdfPanel Background=&quot;LightGray&quot; ViewType=&quot;SinglePage&quot; PageDisplay=&quot;ContinuousPages&quot; PageMargin=&quot;0,2,4,2&quot; AllowDrop=&quot;True&quot;/--&gt;
  
  
    &lt;/DockPanel&gt;
  
  &lt;/Window&gt;
  </code></pre>
  <p>However, for some reason, I am getting a compile error on the line:</p>
  <pre><code>        &lt;mpp:MoonPdfPanel Background=&quot;LightGray&quot; ViewType=&quot;SinglePage&quot; PageDisplay=&quot;ContinuousPages&quot; PageMargin=&quot;0,2,4,2&quot; AllowDrop=&quot;True&quot;/&gt;
  </code></pre>
  <p>which says:</p>
  <blockquote>
  <p>The name &quot;MoonPdfPanel&quot; does not exist in the namespace &quot;DocumentViewer:MoonPdfLib</p>
  </blockquote>
  <p>I downloaded the MoonPdfViewer from <a href="https://sourceforge.net/projects/moonpdf/?source=typ_redirect" rel="nofollow noreferrer">https://sourceforge.net/projects/moonpdf/?source=typ_redirect</a>, and have ensured that it is in the root of my workspace... as far as I can tell, I have followed everything the tutorial says to do, and yet I am getting this compile error...</p>
  <p>If I try to run the application, when it tells me that there were build errors, and asks if I would like to continue and run the last successful build, if I say 'No', 3 errors are shown in the console:</p>
  <blockquote>
  <p>The name &quot;MoonPdfPanel&quot; does not exist in the namespace &quot;DocumentViewer:MoonPdfLib;assembly=MoonPdfLib&quot;.</p>
  <p>The property 'PageDisplay' was not found in the type 'MoonPdfPanel'.</p>
  <p>The property 'PageDisplay' does not exist in XML namespace 'clr-namespace:MoonPdfLib;assembly=MoonPdfLib'. Line 11 Position 72.</p>
  </blockquote>
  <p>What am I doing wrong here? How can I add this <code>MoonPdfPanel</code> to my application?</p>