views:

17

answers:

1

How do I check when a listbox is updated, or when its item count changes? I can only capture the SelectionChanged event now.

I'm trying to select any new item when initially added to the listbox binded DocItemCollection.

A: 

If your DocItemCollection is an observable collection (or at least implements INotifyCollectionChanged) you can watch it by subscribing to : DocItemCollection.CollectionChanged and see if it is an insert or a delete.

Benjamin Baumann