title: WPF - The following type was expected: UIElement
body: <pre><code>       &lt;ElementHost&gt;
          &lt;dc:MyControl Name="MyControl3"  ShowScrollBars="True" Enabled="true" AutoScroll="True" /&gt;
          &lt;/ElementHost&gt;
  </code></pre>
  
  <p>My project builds ok, but dc:MyControl is underlined saying:
  The specified value cannot be assigned. The following type was expected: UIElement</p>
  
  <p>Is there a way around this? Thanks</p>