New to Telerik UI for WPFStart a free 30-day trial

ObservableCollection<T> that also raises notifications when one of its items property is changed. The items in the collection should implement INotifyPropertyChanged.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Type Parameters:

T

Type of the items in the collection. It should implement INotifyPropertyChanged.

Syntax:

C#
public class ObservableItemCollection<T> : RadObservableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISuspendNotifications, INotifyItemChanged where T : class, INotifyPropertyChanged

Inheritance: objectCollection<T>ObservableCollection<T>RadObservableCollection<T>ObservableItemCollection<T>

Derived Classes: CardDataFieldDescriptorCollectionItemPropertyDefinitionCollectionPropertyDefinitionCollectionDataPointCollectionAggregateFunctionCollectionFilterDescriptorCollectionGroupDescriptorCollectionHierarchyDescriptorCollectionSelectDescriptorCollectionSortDescriptorCollection...

Implements: ICollectionICollection<T>IEnumerableIEnumerable<T>IListIList<T>INotifyCollectionChangedINotifyItemChangedINotifyPropertyChangedIReadOnlyCollection<T>IReadOnlyList<T>ISuspendNotifications...

Inherited Members RadObservableCollection<T>.AddRange(IEnumerable<T>)RadObservableCollection<T>.InsertRange(IEnumerable<T>, int)RadObservableCollection<T>.RemoveRange(IEnumerable<T>)RadObservableCollection<T>.Reset()RadObservableCollection<T>.OnPropertyChanged(PropertyChangedEventArgs)RadObservableCollection<T>.OnCollectionChanging(CollectionChangingEventArgs)RadObservableCollection<T>.InsertItem(int, T)RadObservableCollection<T>.RemoveItem(int)RadObservableCollection<T>.SuspendNotifications()RadObservableCollection<T>.ResumeNotifications()RadObservableCollection<T>.RaiseCollectionChangedOnResume()RadObservableCollection<T>.IsDirtyRadObservableCollection<T>.ShouldResetOnResumeNotificationsRadObservableCollection<T>.NotificationsSuspendedRadObservableCollection<T>.AddedItemsRadObservableCollection<T>.RemovedItemsRadObservableCollection<T>.CollectionChangingRadObservableCollection<T>.PropertyChangedObservableCollection<T>.Move(int, int)ObservableCollection<T>.SetItem(int, T)ObservableCollection<T>.MoveItem(int, int)ObservableCollection<T>.BlockReentrancy()ObservableCollection<T>.CheckReentrancy()ObservableCollection<T>.CollectionChangedCollection<T>.Add(T)Collection<T>.Clear()Collection<T>.CopyTo(T[], int)Collection<T>.Contains(T)Collection<T>.GetEnumerator()Collection<T>.IndexOf(T)Collection<T>.Insert(int, T)Collection<T>.Remove(T)Collection<T>.RemoveAt(int)Collection<T>.CountCollection<T>.ItemsCollection<T>.this[int]...

Constructors

C#
public ObservableItemCollection()

Methods

C#
protected override void ClearItems()

Overrides: RadObservableCollection<T>.ClearItems()

Remarks:

Unsubscribes from all items PropertyChanged events.

C#
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

Overrides: RadObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedEventArgs)

Remarks:

Raises the CollectionChanged event when notifications are not suspended.

Raises the ItemChanged event.

C#
protected virtual void OnItemChanged(ItemChangedEventArgs<T> e)
Parameters:eItemChangedEventArgs<T>

The ItemChangedEventArgs<T> instance containing the event data.

Events

Raised when some collection item's property is changed.

C#
public event EventHandler<ItemChangedEventArgs<T>> ItemChanged