Skip to main content

NotifyingListBase<T> Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid

A base class for observable collections that implements System.Collections.Specialized.INotifyCollectionChanged and System.ComponentModel.INotifyPropertyChanged with support for batch operations.

public class NotifyingListBase<T>

Inheritance: Collection<> -> NotifyingListBase<T>

Implements: INotifyCollectionChanged, INotifyPropertyChanged

Remarks

This class should be considered internal to the TreeDataGrid package and is not intended for use outside of this package.

Constructors

NameDescription
NotifyingListBase<T>Initializes a new instance of the Avalonia.Controls.Models.NotifyingListBase<T> class.

NotifyingListBase<T> Constructor

Initializes a new instance of the Avalonia.Controls.Models.NotifyingListBase<T> class.

public NotifyingListBase<T>()

Methods

NameDescription
InsertRangeNo summary available.
RemoveRangeRemoves multiple items from the collection starting at the specified index as a batch operation.
ResetNo summary available.

InsertRange Method

public void InsertRange(int index, Action<Action<T>> action)

Parameters

index int

action Action<Action<T>>

RemoveRange Method

Removes multiple items from the collection starting at the specified index as a batch operation.

public void RemoveRange(int index, int count)

Parameters

index int

The zero-based starting index of the items to remove.

count int

The number of items to remove.

Reset Method

public void Reset(Action<System.Collections.Generic.IList<T>> action)

Parameters

action Action<System.Collections.Generic.IList<T>>

Events

NameDescription
CollectionChangedNo summary available.
PropertyChangedNo summary available.

CollectionChanged Event

public event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged

PropertyChanged Event

public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged