[]
The ReentrantObservableCollection<T> class represents the same interface and functionality as the Collection<T> with one exception: it allows collection changing in event handlers for the CollectionChanged event.
public class ReentrantObservableCollection<T> : Collection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
| Name | Description |
|---|---|
| T |
| Name | Description |
|---|---|
| ReentrantObservableCollection() |
| Name | Description |
|---|---|
| InUpdate | Gets a bool value determining whether the ReentrantObservableCollection<T> is in update mode (BeginUpdate() has been called). |
| Name | Description |
|---|---|
| BeginUpdate() | Prevents raising events until the EndUpdate() method is called. |
| ClearItems() | Overrides the default behavior. |
| EndUpdate() | Enables raising events. If collection has been changed since the call to the BeginUpdate() method, raises PropertyChanged and CollectionChanged events. |
| InsertItem(int, T) | Overrides the default behavior. |
| Move(int, int) | Moves the item at the specified index to a new location in the collection. |
| MoveItem(int, int) | Implements item moving from one location to another. |
| OnCollectionChanged(NotifyCollectionChangedEventArgs) | Raises CollectionChanged event if the ReentrantObservableCollection<T> is not in update mode. |
| RemoveItem(int) | Overrides the default behavior. |
| SetItem(int, T) | Overrides the default behavior. |
| Name | Description |
|---|---|
| CollectionChanged | Occurs when an item is added, removed, changed, moved, or the entire list is refreshed. |
| PropertyChanged | Occurs when a property value changes. |