Table of Contents

Method OnCollectionChanged

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

e NotifyCollectionChangedEventArgs

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

action NotifyCollectionChangedAction
item object
index int

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

action NotifyCollectionChangedAction
item object
index int
oldIndex int

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

action NotifyCollectionChangedAction
oldItem object
newItem object
index int