title: Adding a custom namespace to XAML
body: <p>I am trying to add my own namespace to my xaml file in order to use my own class easily -I guess  the reason is this-
  I wrote the following code in window tag for this:</p>
  <pre><code>xmlns:myns=&quot;clr-namespace:LibNameSpace&quot; 
  </code></pre>
  <p>Where my window tag also starts with the following definition:</p>
  <pre><code>&lt;Window x:Class=&quot;LibNameSpace.MainWindow&quot;
  </code></pre>
  <p>I want to use the <code>LibNameSpace:Class1</code> class, and I was hoping to write <code>myns:Class1</code> for this. However, that command causes this error:</p>
  <blockquote>
  <p>Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'LibNameSpace' that is not included in the assembly.</p>
  </blockquote>
  <p>How can I fix this?</p>