Class
ObservableItemCollection<T>

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:

cs-api-definition
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

ObservableItemCollection()

Declaration

cs-api-definition
public ObservableItemCollection()

Methods

ClearItems()

Declaration

cs-api-definition
protected override void ClearItems()

Overrides RadObservableCollection<T>.ClearItems()

Remarks

Unsubscribes from all items PropertyChanged events.

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Declaration

cs-api-definition
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

Overrides RadObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedEventArgs)

Remarks

Raises the CollectionChanged event when notifications are not suspended.

OnItemChanged(ItemChangedEventArgs<T>)

Raises the ItemChanged event.

Declaration

cs-api-definition
protected virtual void OnItemChanged(ItemChangedEventArgs<T> e)

Parameters

e

ItemChangedEventArgs<T>

The ItemChangedEventArgs<T> instance containing the event data.

Events

ItemChanged

Raised when some collection item's property is changed.

Declaration

cs-api-definition
public event EventHandler<ItemChangedEventArgs<T>> ItemChanged

Event Value

EventHandler<ItemChangedEventArgs<T>>