ClassLoadOnDemandCollection<T>
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>
Derived Classes:
Implements:
Inherited Members
Constructors
LoadOnDemandCollection(Func<CancellationToken, IEnumerable>)
Initializes a new instance of the LoadOnDemandCollection<T> class.
Declaration
public LoadOnDemandCollection(Func<CancellationToken, IEnumerable> action)
Parameters
action
Func<CancellationToken, IEnumerable>
The action to execute when loading items on demand.
Properties
HasMoreItems
Gets a value indicating whether there are more items available to load.
IsLoading
Gets a value indicating whether the collection is currently loading items.
LoadOnDemandAction
Gets the action used to load items on demand.
Declaration
public Func<CancellationToken, IEnumerable> LoadOnDemandAction { get; }
Property Value
Implements
Methods
LoadItemsOnDemand()
Loads items on demand asynchronously using the configured load action.
Declaration
public void LoadItemsOnDemand()
Implements
Events
LoadingOnDemandCanceled
Occurs when the load-on-demand operation has been canceled.
Declaration
public event EventHandler<EventArgs> LoadingOnDemandCanceled
Event Value
Implements
LoadingOnDemandFinished
Occurs when the load-on-demand operation has finished.
Declaration
public event EventHandler<EventArgs> LoadingOnDemandFinished
Event Value
Implements
LoadingOnDemandStarted
Occurs when the load-on-demand operation has started.
Declaration
public event EventHandler<EventArgs> LoadingOnDemandStarted
Event Value
Implements