Use an ObservableCollection
for the ItemsSource
property on your FlipView
.
You can subscribe to the SelectionChanged
event on your FlipView
:
private void FlipView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
//
}
In this handler, you can get the current index and decide if you have to load the next item or not (i.e. if the index is Count - 1
of your collection).
Beware that when adding an item to the collection, the event will fire and your handler will be called.