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

  • Thread starter Thread starter 12jumper
  • Start date Start date
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
 
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.
 
Back
Top