I've got a custom class, which derives from UserControl
.
The code:
public partial class Gallery<T> : UserControl where T : class, IElement, new()
This classworks like it's supposed to work. But, when I try to enter design mode of the form which contains these Gallery
classes, it gives me errors:
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.
The variable 'pictureGallery' is either undeclared or was never assigned.
Note: (pictureGallery
actually is a Gallery<PictureElement>
).
How can solve this? This way, I can't work in design mode which makes creating my userinterface quite hard.