<p>When I try using a <code>Name="id"</code> and\or <code>x:name="id"</code> I get a compiler error:</p>

<pre><code>The Type 'MyName' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
</code></pre>

<p>When I don't have this specified my control runs just fine. Any suggestions?</p>

I've run into this before and believe it's a compiler bug. I ended up just sticking a named
```
ContentControl
```
in my XAML and sticking the user control in it from the code behind. Hopefully someone can share an actual fix for this.