Current methods of IPopupService.ClosePopup and IPopupService.ClosePopupAsync don't recognize which popup really closing #2424
Replies: 2 comments 2 replies
-
The default implementation just closes the last displayed popup. You can create your own implementation of https://github.com/CommunityToolkit/Maui/blob/main/src/CommunityToolkit.Maui/Popup/IPopupLifecycleController.cs and assign it to the LifecycleController property on PopupService. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I have concurrent code which can open few popups at the same time, one is progress popup, another - popup with entry field for data editing. They are opened simultaneously from different places so i can't manage order of their opening.
When i call ClosePopup/ClosePopupAsync at code related to progress I'm getting incorrect result at code related to popup with entry field.
So I'm asking about possibility to add popup order management inside CommunityToolkit code
Thank you
Beta Was this translation helpful? Give feedback.
All reactions