Designer -> 'Collection' type property -> refresh control after adding new items

1

12jumper

Hi All :)

I've created an UserControl, which has a couple of properties that are
collections (generic lists of some objects). It would be nice, if
control refreshed each time I add a new item to the collection (using
StringCollectionEditor). Is there any attribute I can use, or perhaps I
have to create a new class that inherites from List<T> and subscribe on
some event? Any suggestions greatly appreciated.

Greetings
jumper
 
S

Stoitcho Goutsev \(100\)

What do you meen by refreshing the control? When adding/removing elements to
the collection using string collection editor should fire
ComponentChanging/ComponentChanged events through the
ICompoenentChangedService. You can subscirbe for these notifications in your
designer and use them to update your control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top