Class ItemNotifyCollection<T>
Represents a collection that provides notifications when items are added, removed, or when individual items' properties change.
Inheritance
Inherited Members
Namespace: Telerik.Collections.Generic
Assembly: Telerik.WinControls.dll
Syntax
public class ItemNotifyCollection<T> : NotifyCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged where T : INotifyPropertyChanged
Type Parameters
T
The type of elements in the collection. Must implement INotifyPropertyChanged. |
Remarks
This collection extends NotifyCollection by automatically subscribing to PropertyChanged events of individual items. When an item's property changes, the collection raises a CollectionChanged event with ItemChanged action.
Constructors
ItemNotifyCollection()
Declaration
public ItemNotifyCollection()
ItemNotifyCollection(IList<T>)
Declaration
public ItemNotifyCollection(IList<T> list)
Parameters
System.Collections.Generic.IList<T>
list
|
Methods
ClearItems()
Declaration
protected override void ClearItems()
Overrides
InsertItem(Int32, T)
Declaration
protected override void InsertItem(int index, T item)
Parameters
System.Int32
index
|
T
item
|
Overrides
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32
index
|
Overrides
SetItem(Int32, T)
Declaration
protected override void SetItem(int index, T item)
Parameters
System.Int32
index
|
T
item
|
Overrides
SubscribeItem(T)
Declaration
protected virtual void SubscribeItem(T item)
Parameters
T
item
|
UnsubscribeItem(T)
Declaration
protected virtual void UnsubscribeItem(T item)
Parameters
T
item
|