title: C# typed <T> usercontrol in design mode gives error
body: <p>I've got a custom class, which derives from <code>UserControl</code>. 
  The code:</p>
  
  <pre><code>public partial class Gallery&lt;T&gt; : UserControl where T : class, IElement, new()
  </code></pre>
  
  <p>This classworks like it's supposed to work. But, when I try to enter design mode of the form which contains these <code>Gallery</code> classes, it gives me errors:</p>
  
  <blockquote>
    <ul>
    <li><p>Could not find type 'PresentrBuilder.Forms.Gallery'.
    Please make sure that the assembly
    that contains this type is referenced.
    If this type is a part of your
    development project, make sure that
    the project has been successfully
    built. </p></li>
    <li><p>The variable 'pictureGallery' is either undeclared or was never
    assigned.</p></li>
    </ul>
  </blockquote>
  
  <p>Note: (<code>pictureGallery</code> actually is a <code>Gallery&lt;PictureElement&gt;</code>).</p>
  
  <p>How can solve this? This way, I can't work in design mode which makes creating my userinterface quite hard.</p>