Represents an observable collection that supports loading items on demand.
Definition
Namespace:Telerik.Maui
Assembly:Telerik.Maui.Core.dll
Type Parameters:
T
The type of items in the collection.
Syntax:
public class LoadOnDemandCollection<T> : ObservableCollection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ISupportLoadOnDemand
Inheritance: objectCollection<T>ObservableCollection<T>LoadOnDemandCollection<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the LoadOnDemandCollection<T> class.
public LoadOnDemandCollection(Func<CancellationToken, IEnumerable> action)
The action to execute when loading items on demand.
Properties
Gets a value indicating whether there are more items available to load.
public bool HasMoreItems { get; }
Implements:
Gets a value indicating whether the collection is currently loading items.
public bool IsLoading { get; }
Implements:
Gets the action used to load items on demand.
public Func<CancellationToken, IEnumerable> LoadOnDemandAction { get; }
Implements:
Methods
Loads items on demand asynchronously using the configured load action.
public void LoadItemsOnDemand()
Implements:
Events
Occurs when the load-on-demand operation has been canceled.
public event EventHandler<EventArgs> LoadingOnDemandCanceled
Implements:
Occurs when the load-on-demand operation has finished.
public event EventHandler<EventArgs> LoadingOnDemandFinished
Implements:
Occurs when the load-on-demand operation has started.
public event EventHandler<EventArgs> LoadingOnDemandStarted
Implements: