Hello,
However IsBusy remains true for some reason. This means OnItemTapped will not execute except for the first time.
I can reproduce this issue.
Because Navigation was executed multiple times before IsBusy = false;
, I edited your OnItemTapped
method. After executing navigation, please wait for this navigating finished, then set IsBusy = false;
.
private async void OnItemTapped(BookedJobs job)
{
if (IsBusy)
{
return;
}
IsBusy = true;
try
{
await Shell.Current.GoToAsync($"{typeof(BookedJobsDetailsPage).FullName}", new Dictionary < string, object > { ["BookedJobs1"] = job
});
}
finally
{
await Task.Delay(500);
IsBusy = false; // <== Busy set to false but it does not seem to work
}
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.