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

ListView ItemSelected Bug

$
0
0

Hi there!

I checked a bug when I click in a LisView item, then If I click twice or more, it opens as many pages I clicked.
Anyone has the idea how to fix it?

ListIdeas.ItemSelected += (sender, e) => {

    if (e.SelectedItem == null) return; // don't do anything if we just de-selected the row

    this.Navigation.PushAsync(new IdeaDetailsPage());

    ((ListView)sender).SelectedItem = null; // de-select the row
};

Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>