Class ObservablePropertyChangedCollection<TItem>
Raises CollectionChanged event when the property of an item raised PropertyChanged. The NotifyCollectionChangedAction for this particular notification is Reset with a reference to the notifying item and the item's index. .
Inheritance
Collection<TItem>
ObservableCollection<TItem>
ObservablePropertyChangedCollection<TItem>
Implements
IList<TItem>
ICollection<TItem>
IReadOnlyList<TItem>
IReadOnlyCollection<TItem>
IEnumerable<TItem>
Inherited Members
System.Collections.ObjectModel.Collection<TItem>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<TItem>.System.Collections.IList.set_Item(System.Int32, System.Object)
Namespace: BionicCode.Utilities.Net
Assembly: BionicCode.Utilities.Net.Wpf.dll
Syntax
[Serializable]
public class ObservablePropertyChangedCollection<TItem> : ObservableCollection<TItem>, IList<TItem>, ICollection<TItem>, IReadOnlyList<TItem>, IReadOnlyCollection<TItem>, IEnumerable<TItem>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Type Parameters
| Name | Description |
|---|---|
| TItem |
Remarks
The item must implement INotifyPropertyChanged otherwise the behavior is like a common ObservableCollection<T>. The ObservablePropertyChangedCollection<TItem> implements the weak event pattern in order to handle the PropertyChanged event.
Methods
| Improve this Doc View SourceClearItems()
Declaration
protected override void ClearItems()
Overrides
System.Collections.ObjectModel.ObservableCollection<TItem>.ClearItems()
|
Improve this Doc
View Source
InsertItem(Int32, TItem)
Declaration
protected override void InsertItem(int index, TItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | |
| TItem | item |
Overrides
System.Collections.ObjectModel.ObservableCollection<TItem>.InsertItem(System.Int32, TItem)
|
Improve this Doc
View Source
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index |
Overrides
System.Collections.ObjectModel.ObservableCollection<TItem>.RemoveItem(System.Int32)
|
Improve this Doc
View Source
SetItem(Int32, TItem)
Declaration
protected override void SetItem(int index, TItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | |
| TItem | item |
Overrides
System.Collections.ObjectModel.ObservableCollection<TItem>.SetItem(System.Int32, TItem)
Events
| Improve this Doc View SourcePropertyChanged
Declaration
protected override event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |
Overrides
System.Collections.ObjectModel.ObservableCollection<TItem>.PropertyChanged