private void ListView_ItemDisappearing(object sender, ItemVisibilityEventArgs e) { if (e.ItemIndex != 0 || StackLayoutInfo.IsVisible) { return; } StackLayoutInfo.FadeTo(1); StackLayoutInfo.IsVisible = true; }
private void ListView_ItemAppearing(object sender, ItemVisibilityEventArgs e) { if (e.ItemIndex == 0 && StackLayoutInfo.IsVisible) { StackLayoutInfo.FadeTo(0).ContinueWith((t) => { StackLayoutInfo.IsVisible = false; }, TaskScheduler.FromCurrentSynchronizationContext()); } if (VM.IsBusy || VM.Episodes.Count == 0) { return; } //hit bottom! if (e.ItemIndex == VM.Episodes.Count - 1) { VM.LoadMoreEpisodes(); } }