Skip to main content

ItemsSourceView<T> Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia
public class ItemsSourceView<T>

Inheritance: object -> ItemsSourceView -> ItemsSourceView<T>

Implements: IEnumerable<>, IReadOnlyCollection<>, IReadOnlyList<>, IEnumerable

Methods

NameDescription
GetAtRetrieves the item at the specified index.
GetEnumeratorNo summary available.
ContainsInherited from ItemsSourceView.
GetOrCreate (2 overloads)Inherited from ItemsSourceView.
IndexOfInherited from ItemsSourceView.

GetAt Method

Retrieves the item at the specified index.

public T GetAt(int index)

Parameters

index int

The index.

Returns

T

The item.

GetEnumerator Method

public System.Collections.Generic.IEnumerator<T> GetEnumerator()

Returns

System.Collections.Generic.IEnumerator<T>

Properties

NameDescription
EmptyGets an empty Avalonia.Controls.ItemsSourceView
ItemNo summary available.
CountGets the number of items in the collection. Inherited from ItemsSourceView.
SourceGets the source collection. Inherited from ItemsSourceView.

Empty Property

Gets an empty Avalonia.Controls.ItemsSourceView

public Avalonia.Controls.ItemsSourceView<T><T> Empty { get; set; }

Item Property

public T Item { get; set; }

Events

NameDescription
CollectionChangedOccurs when the collection has changed to indicate the reason for the change and which items changed. Inherited from ItemsSourceView.