Represents an observable collection that provides notifications for both collection changes and property changes of individual items. This class extends ObservableCollection<T> to provide enhanced item tracking capabilities.
Definition
Namespace:Telerik.Maui
Assembly:Telerik.Maui.Core.dll
Type Parameters:
T
The type of elements in the collection.
Syntax:
public class ObservableItemCollection<T> : ObservableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Inheritance: objectCollection<T>ObservableCollection<T>ObservableItemCollection<T>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the ObservableItemCollection<T> class.
public ObservableItemCollection()
Methods
Removes all items from the collection while preserving item tracking capabilities.
protected override void ClearItems()
Overrides:
Events
Occurs when an item is added to the collection.
public event EventHandler<ObservableItemCollectionChangedEventArgs<T>> ItemAdded
Occurs when a property of an item in the collection changes. This event is only raised for items that implement INotifyPropertyChanged.
public event EventHandler<ItemPropertyChangedEventArgs<T>> ItemPropertyChanged
Occurs when an item is removed from the collection.
public event EventHandler<ObservableItemCollectionChangedEventArgs<T>> ItemRemoved