|
Hi all,
I have just developed a control which contains items adhering to a special interface IControlItem. Also, with the control, I provide a default implementation of this interface, which just stores item data. The implementation class is ControlItemDefault. I want to be able to add such items directly from the windows forms designer. But when I try to add such an item, it wants to instantiate IControlItem, which it obviously can't do. How can I tell the designer that it should use instead the provided default implementation? Is there an attribute that I can attach to the collection, which tells the designer what to do? Any other suggestions?
Thanks in advance, Cosmin.
|