Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,370 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When I tap ListView, another screen is displayed.
If you tap continuously, multiple screens will open.
Please tell me the solution.
private async void List_ItemTapped(Object sender, ItemTappedEventArgs e)
{
try
{
await PopupNavigation.Instance.PushAsync(new DataPage());
}
catch
{
}
}
Hello,
Welcome to our Microsoft Q&A platform!
You can disabled the listview when you navigate between pages, after that, you can enable your listview.
private async void ListView_ItemTapped(object sender, ItemTappedEventArgs e)
{
ListView listView=sender as ListView;
listView.IsEnabled = false;
await Navigation.PushAsync(new Page1());
listView.IsEnabled = true;
}
Best Regards,
Jessie Zhang
---
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.