ItemsSourceView<T> Class

Namespace
Avalonia.Controls
Interfaces
  • IDisposable
  • IReadOnlyList<T>
  • IReadOnlyCollection<T>
  • IEnumerable<T>
  • IEnumerable
Base Types
graph BT Type-->Base0["ItemsSourceView"] click Base0 "/api/Avalonia.Controls/ItemsSourceView" Base0-->Base1["INotifyCollectionChanged"] Type-.->Interface0["IDisposable"] Type-.->Interface1["IReadOnlyList<T>"] Type-.->Interface2["IReadOnlyCollection<T>"] Type-.->Interface3["IEnumerable<T>"] Type-.->Interface4["IEnumerable"] Type["ItemsSourceView<T>"] class Type type-node

Syntax

public class ItemsSourceView<T> : ItemsSourceView, IDisposable, IReadOnlyList<T>, 
    IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

Name Description
T

Constructors

Name Summary
ItemsSourceView(IEnumerable<T>) Initializes a new instance of the ItemsSourceView class for the specified data source.

Events

Name Type Summary
CollectionChanged NotifyCollectionChangedEventHandler?
Occurs when the collection has changed to indicate the reason for the change and which items changed.
Inherited from ItemsSourceView

Properties

Name Value Summary
Count int
Gets the number of items in the collection.
Inherited from ItemsSourceView
Empty ItemsSourceView<T>
Gets an empty ItemsSourceView
static
Empty ItemsSourceView
Gets an empty ItemsSourceView
Inherited from ItemsSourceView
static
HasKeyIndexMapping bool
Gets a value that indicates whether the items source can provide a unique key for each item.
Inherited from ItemsSourceView
this[int] T
Retrieves the item at the specified index.
this[int] object?
Retrieves the item at the specified index.
Inherited from ItemsSourceView

Methods

Name Value Summary
Dispose() void
Inherited from ItemsSourceView
GetAt(int) T
Retrieves the item at the specified index.
GetAt(int) object?
Retrieves the item at the specified index.
Inherited from ItemsSourceView
GetEnumerator() IEnumerator<T>
GetOrCreate(IEnumerable?) ItemsSourceView<T>
static
GetOrCreate(IEnumerable?) ItemsSourceView
Inherited from ItemsSourceView
static
IndexFromKey(string) int
Retrieves the unique identifier (key) for the item at the specified index.
Inherited from ItemsSourceView
IndexOf(object?) int
Inherited from ItemsSourceView
KeyFromIndex(int) string
Retrieves the index of the item that has the specified unique identifier (key).
Inherited from ItemsSourceView
OnItemsSourceChanged(NotifyCollectionChangedEventArgs) void
Inherited from ItemsSourceView