Method OnCollectionChanged
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Raise CollectionChanged event to any listeners. Properties/methods modifying this collection will raise a collection changed event through this virtual method.
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
Remarks
When overriding this method, either call its base implementation or call BlockReentrancy() to guard against reentrant collection changes.
OnCollectionChanged(NotifyCollectionChangedAction, object?, int)
Helper to raise CollectionChanged event to any listeners.
protected void OnCollectionChanged(NotifyCollectionChangedAction action, object? item, int index)
Parameters
actionNotifyCollectionChangedActionitemobjectindexint
OnCollectionChanged(NotifyCollectionChangedAction, object?, int, int)
Helper to raise CollectionChanged event to any listeners.
protected void OnCollectionChanged(NotifyCollectionChangedAction action, object? item, int index, int oldIndex)
Parameters
actionNotifyCollectionChangedActionitemobjectindexintoldIndexint
OnCollectionChanged(NotifyCollectionChangedAction, object?, object?, int)
Helper to raise CollectionChanged event to any listeners.
protected void OnCollectionChanged(NotifyCollectionChangedAction action, object? oldItem, object? newItem, int index)
Parameters
actionNotifyCollectionChangedActionoldItemobjectnewItemobjectindexint