How to know the current popup status after popping up the Navigation Page

영훈 정 281 Reputation points
2022-11-29T08:53:25.523+00:00

I want it to popup or not to popup by receiving the On and Off events.

I received the On event and popped it up. Off event has [await Navigation.PopAllPopupAsync(false); ] to clear the popup.

There are cases where the off event comes in twice. If there is no currently popped page, await Navigation.PopAllPopupAsync(false); will throw an exception. So I want to know if there is a flag to know if there is currently popped screen.

Developer technologies | .NET | Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.