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)
- C#
- VB
- F#
protected virtual SelectionNodeBase(T).CollectionChangeState OnItemsAdded(
int index,
IList items
)
Protected Overridable Function OnItemsAdded (
index As Integer,
items As IList
) As SelectionNodeBase(T).CollectionChangeState
abstract OnItemsAdded :
index : int *
items : IList -> SelectionNodeBase(T).CollectionChangeState
override OnItemsAdded :
index : int *
items : IList -> SelectionNodeBase(T).CollectionChangeState
Parameters
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