public sealed class RunicQueryCollectionView<TRow> : IList, ICollection, IEnumerable, IReadOnlyList<TRow?>, IEnumerable<TRow?>, IReadOnlyCollection<TRow?>, INotifyCollectionChanged, INotifyPropertyChanged, IDisposable One View's list of a RunicQueryCollection, for a WPF ItemsControl with UI virtualization: it has RunicQueryCollection.Total items and loads the pages that its panel reads. Create it with RunicQueryCollection.CreateView.
Type parameters
TRowThe row type.
Remarks
An item whose page has not arrived is null; the list then replaces it with the row, one NotifyCollectionChangedAction.Replace per row. A new RunicQueryCollection.Version or total resets the list. It keeps at most 32 pages and raises its notifications in the SynchronizationContext it was created with, normally the UI thread's.
IList.IndexOf and IList.Contains search only the loaded rows. The list is read-only.
Properties
Count
public int Count { get; } The number of rows: the collection's total, or 0 until it was counted.
this[]
public TRow? this[int index] { get; } The row at index, or null while its page loads.
Parameters
indexThe row's position.
Methods
Dispose
public void Dispose() Stops loading and following the collection.
GetEnumerator
public IEnumerator<TRow?> GetEnumerator() Inherits documentation from a base member that this reference does not include.
Events
CollectionChanged
public event NotifyCollectionChangedEventHandler? CollectionChanged Inherits documentation from INotifyCollectionChanged.CollectionChanged.
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged Inherits documentation from INotifyPropertyChanged.PropertyChanged.