New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Constructors

Initializes a new instance of the ObservableItemCollection<T> class.

C#
public ObservableItemCollection()

Methods

Removes all items from the collection while preserving item tracking capabilities.

C#
protected override void ClearItems()

Overrides: ObservableCollection<T>.ClearItems()

Events

Occurs when an item is added to the collection.

C#
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.

C#
public event EventHandler<ItemPropertyChangedEventArgs<T>> ItemPropertyChanged

Occurs when an item is removed from the collection.

C#
public event EventHandler<ObservableItemCollectionChangedEventArgs<T>> ItemRemoved