Skip to main content

OnItemsAdded 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)

protected virtual SelectionNodeBase(T).CollectionChangeState OnItemsAdded(
int index,
IList items
)

Parameters​

  Int32
 
  IList
 

Return Value​

SelectionNodeBase(T).CollectionChangeState
A SelectionNodeBase(T).CollectionChangeState struct containing the details of the adjusted selection.

Remarks​

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

See Also​

Reference​

SelectionNodeBase(T) Class
Avalonia.Controls.Selection Namespace