rotorgames / Rg.Plugins.Popup

Xamarin Forms popup plugin
MIT License
1.15k stars 336 forks source link

How to reload parent page after close many popup Rg.Plugins.Popup #737

Closed nhuy-ecotech closed 2 years ago

nhuy-ecotech commented 2 years ago

Hello everyone, I have a main page and 3 popups open consecutively. How when closing the last popup the main page is detected the event to reload main page? Thanks

💬 Questions and Help

For questions or help we recommend checking:

LuckyDucko commented 2 years ago

Hi @nhuy-ecotech

Usually people attach a task to a popup page that they can await, so then you can have your reload follow the return of the last popup page.

Alternatively, I have noticed that some people use the MessagingCentre feature of Xamarin forms to fire off a message when the popup page is closed.

Both of these methods should help you with your problem

nhuy-ecotech commented 2 years ago

Thanks for reply, but I tried use MessagingCenter but it work when has only one popup. Is there any other way? Pls

LuckyDucko commented 2 years ago

Well, i would recommend that task version of this then, i mention a plugin i make, or a simpler DIY by acaliaro. https://github.com/rotorgames/Rg.Plugins.Popup/issues/716