ClassObservableItemCollection<T>
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
ObservableItemCollection()
Initializes a new instance of the ObservableItemCollection<T> class.
Declaration
public ObservableItemCollection()
Methods
ClearItems()
Removes all items from the collection while preserving item tracking capabilities.
Declaration
protected override void ClearItems()
Overrides
Events
ItemAdded
Occurs when an item is added to the collection.
Declaration
public event EventHandler<ObservableItemCollectionChangedEventArgs<T>> ItemAdded
Event Value
ItemPropertyChanged
Occurs when a property of an item in the collection changes. This event is only raised for items that implement INotifyPropertyChanged.
Declaration
public event EventHandler<ItemPropertyChangedEventArgs<T>> ItemPropertyChanged
Event Value
ItemRemoved
Occurs when an item is removed from the collection.
Declaration
public event EventHandler<ObservableItemCollectionChangedEventArgs<T>> ItemRemoved
Event Value