I have created a custom collection and added it to my user control.
If I let the generic collection editor be used to edit the contents then it
works just fine and any newly created entries are persisted into code. But I
want to create my own collection editor and have used the UITypeEditor
attribute so that mine gets called as a modal dialog. This works fine in
that I can press the '...' button for the collection and my dialog appears
and does into modify the collection contents.
But .... the newly added entries are not persisted into code whereas using
the generic collection editor does. Should I be called some designer related
service/method to notify the designer that the contents have been changed?
Phil.
Paul - 13 May 2004 07:20 GMT
Hi Phil!
It's possible you did not add attribute for collection.
Look at the example:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public CommandBarItemCollection Items
{
get { return this.items; }
}
> I have created a custom collection and added it to my user control.
>
[quoted text clipped - 10 lines]
>
> Phil.