microsoft / winforms-designer-extensibility

MIT License
56 stars 13 forks source link

What does a class (or a type) need in order to be designable by out-of-process winforms designer ? #15

Closed pallibj closed 1 year ago

pallibj commented 1 year ago

What exactly makes a type designable by the (out-of-process) winforms designer ?

To further explain, if I have a custom type that does not inherit from any of the system.windows.forms's designable types (Component, Control, etc), what would it take to make that type designable in the winforms designer ?

Is implementing a proper designer and placing the Designer attribute on the type enough to make it designable, or is there something more required to accomplish this ?

Palli

pallibj commented 1 year ago

Never mind. This question does not capture the actual context/subject, as it is basically related to what a type needs in order to be dropped on a form. I guess it's related to implementing the IComponent interface or something similar, so I'll repost when I can be more specific.