1using System.Collections;
2using System.Windows.Input;
46 this.ItemAppearing += this.LoadingListView_ItemAppearing;
47 this.ItemSelected += this.LoadingListView_ItemSelected;
50 private void LoadingListView_ItemAppearing(
object? Sender, ItemVisibilityEventArgs e)
52 if (this.ItemsSource is IList List && e.Item == List[List.Count - 1])
59 private void LoadingListView_ItemSelected(
object? Sender, SelectedItemChangedEventArgs e)
ListView that can load new items when the last items is being displayed
static readonly BindableProperty ItemSelectedCommandProperty
static readonly BindableProperty LoadMoreCommandProperty
ICommand LoadMoreCommand
Command executed when last item is appearing and new data should be loaded.
LoadingListView()
ListView that can load new items when the last items is being displayed
ICommand ItemSelectedCommand
Command executed when last item is appearing and new data should be loaded.