[]
        
(Showing Draft Content)

C1.WPF.Schedule.ReentrantObservableCollection-1

ReentrantObservableCollection<T> Class

The ReentrantObservableCollection<T> class represents the same interface and functionality as the DeferrableObservableCollection<T> with one exception: it allows collection changing in event handlers for the CollectionChanged event.

Inheritance
ReentrantObservableCollection<T>
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
public class ReentrantObservableCollection<T> : Collection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Type Parameters
Name Description
T

Constructors

Name Description
ReentrantObservableCollection()

Properties

Name Description
InUpdate

Gets a bool value determining whether the ReentrantObservableCollection<T> is in update mode (BeginUpdate() has been called).

Methods

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.

Events

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.