title: The name does not exist in the namespace error in XAML
body: <p>Using VS2012 working on a VB.NET WPF application.   I have a simple MusicPlayer tutorial app I am using to learn WPF.   I am converting a C# version of the tutorial to VB.NET step by step.</p>
  
  <p>It has 2 classes in the app that are both under the same namespace.  I am able to reference the namespace in the XAML but when I try to reference the class object in XAML I get an error and I am not able to compile.</p>
  
  <p>Strange thing is that the IntelliSense works fine with both referencing the namespace via the xmlns:c= tag and also when typing the class object using  <code>&lt;c:</code> 
  But the object is underlined and errors are generated trying to build or work in the designer.</p>
  
  <p>The .vb  class files are in a folder called \Controls.  The Main project Root Namespace is intentionaly left blank.   The class is coded like this...</p>
  
  <pre><code>Namespace MusicPlayer.Controls
      Public Class UpdatingMediaElement
         .... code here
      End Public
  End Namespace
  </code></pre>
  
  <p>The xaml looks like this</p>
  
  <p>(namespace defined in the <code>&lt;Window &gt;</code> tag</p>
  
  <pre><code>xmlns:c="clr-namespace:MusicPlayer.Controls"
  </code></pre>
  
  <p>(object defined in a <code>&lt;Grid&gt;</code> )</p>
  
  <pre><code>  &lt;c:UpdatingMediaElement Name="MyMediaElement" /&gt;
  </code></pre>
  
  <p>(error displayed)
  The name "UpdatingMediaElement" does not exist in the namespace "clr-namespace:MusicPlayer.Controls".</p>
  
  <p>Not sure what is wrong or how to fix it?</p>