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.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes