Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How to detect listview is scrolling up in Xamarin Forms IOS

$
0
0

I have this code to detect but only fire when scroll down for both method ItemAppearing and ItemDisappearing. Anyone please help

public MatchDetailListView() : base(ListViewCachingStrategy.RecycleElement)
    {
        ItemAppearing += MatchDetailListView_ItemAppearing;
        ItemDisappearing += MatchDetailListView_ItemDisappearing;
    }

    private void MatchDetailListView_ItemDisappearing(object sender, ItemVisibilityEventArgs e)
    {
    }

    private void MatchDetailListView_ItemAppearing(object sender, ItemVisibilityEventArgs e)
    {
        if (e.ItemIndex == 0)
        {
            MessagingCenter.Send(nameof(MatchDetailListView), "ScrollDown");
        }
    }

Viewing all articles
Browse latest Browse all 89864

Trending Articles