Skip to main content

ItemsSourceView Class

Represents a standardized view of the supported interactions between an items collection and an items control.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public class ItemsSourceView : IReadOnlyList<Object>, 
IEnumerable<Object>, IEnumerable, IReadOnlyCollection<Object>,
IList, ICollection, INotifyCollectionChanged
View Source
InheritanceObject → ItemsSourceView
DerivedAvalonia.Controls.ItemCollection
Avalonia.Controls.ItemsSourceView(T)
ImplementsIEnumerable(Object), IReadOnlyCollection(Object), IReadOnlyList(Object), ICollection, IEnumerable, IList, INotifyCollectionChanged

Properties

CountGets the number of items in the collection.
EmptyGets an empty ItemsSourceView
Item(Int32)Retrieves the item at the specified index.
SourceGets the source collection.

Methods

Contains(Object) 
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAt(Int32)Retrieves the item at the specified index.
GetEnumerator() 
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetOrCreate(IEnumerable)Gets or creates an ItemsSourceView for the specified enumerable.
GetOrCreate(T)(IEnumerable)Gets or creates an ItemsSourceView(T) for the specified enumerable.
GetOrCreate(T)(IEnumerable(T))Gets or creates an ItemsSourceView(T) for the specified enumerable.
GetType()Gets the Type of the current instance.
(Inherited from Object)
IndexOf(Object) 
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

Events

CollectionChangedOccurs when the collection has changed to indicate the reason for the change and which items changed.

Extension Methods

GetWeakCollectionChangedObservable()Gets a weak observable for the CollectionChanged event.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(Action(NotifyCollectionChangedEventArgs))Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)
WeakSubscribe(NotifyCollectionChangedEventHandler)Subscribes to the CollectionChanged event using a weak subscription.
(Defined by NotifyCollectionChangedExtensions)

See Also

Reference

Avalonia.Controls Namespace