title: WPF binding to static member
body: <p>Why in the world does this simple thing doesn't work? It is WPF + .NET 4.0 + VB.NET and all I'm trying to accomplish is to bind a ComboBox to a static property of a class:</p>
  
  <pre><code>&lt;ComboBox ItemsSource="{Binding Source={x:Static local:CommonLists.JobStatusTypes }}" /&gt;
  </code></pre>
  
  <p>Namespace 'local' is imported as:</p>
  
  <pre><code>xmlns:local="clr-namespace:MyProject1"
  </code></pre>
  
  <p>And the class is:</p>
  
  <pre><code>Friend NotInheritable Class CommonLists
      Public Shared ReadOnly Property JobStatusTypes As List(Of JobStatusType)
          Get
              ...
          End Get
      End Property
  End Class
  </code></pre>
  
  <p>BTW, it is executing just fine; only the WPF designer (VS2010) has the issue, telling me that 'Type CommonLists was not found'.</p>
  
  <p><strong>EDIT:</strong>
  The problem appears to be more general than that. I cannot access any of my namespaces in WPF using the xmlns syntax.</p>