SelectionNodeBaseTOnItemsAdded Method

Called by OnSourceCollectionChanged(NotifyCollectionChangedEventArgs) when items are added to the source collection.

Definition

Namespace: Avalonia.Controls.Selection
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
protected virtual SelectionNodeBaseTCollectionChangeState OnItemsAdded(
	int index,
	IList items
)

Parameters

index  Int32
 
items  IList
 

Return Value

SelectionNodeBaseTCollectionChangeState
A SelectionNodeBaseTCollectionChangeState struct containing the details of the adjusted selection.

Remarks

The implementation in SelectionNodeBaseT adjusts the selected ranges, assigning new indexes. Override this method to carry out additional computation when items are added.

See Also