[BUG] Popup Dialog can't fullscreen and also DialogLayout.CloseOnBackgroundTapped not working.
Description
I have problem with setup dialog as fullscreen page. As described in here the recommended way to use popups now is using IDialogService. But using IDialogService.ShowDialog have some problem which is:
- Can't set dialog as fullscreen. What I expecting is I want the popup to be fullscreen so I can dim the background by myself like this
but using
IDialogServicewill be look like this -
DialogLayout.CloseOnBackgroundTapped="True"looks like not working properly. I tap the gray area but it is not closing by itself
Steps to Reproduce
- Open this repo https://github.com/albilaga/PrismPopupsIssue
- Run it
- Compare
Open Popup from MopupsandOpen Popup from Dialog.Open Popup from Mopupscan set the popup full screen butOpen Popup from Dialogscan't. -
Open Popup from Dialogalso can't close when background is tapped
Platform with bug
.NET MAUI
Affected platforms
iOS, Android
Did you find any workaround?
No response
Relevant log output
No response
@dansiegel @brianlagunas Although this bug is quite new, it is blocking out MAUI migration. Can you shed some light on that?
Unfortunately, we are working on other things and do not have time to look into this yet. The good news is that the IDialogService is part of the Prism Maui code base here: https://github.com/PrismLibrary/Prism/tree/master/src/Maui/Prism.Maui/Dialogs
Feel free to look around until we have time to look into it.
I was struggling with the same/similar problem. Since we have to migrate from XF to MAUI now, I couldn‘t wait and created a MAUI-compatible dialog plugin for prism. Similar to what was there in prism for Xamarin. As soon as prism has fullscreen dialogs, I‘ll get rid of this nuget.
Thanks for all the good effort!
@thomasgalliker Thank you for that! We appreciate your effort! We will let you know once we successfully integrated your library! 😄
DialogLayout.CloseOnBackgroundTapped bug reproduced also in Windows platform.
Hi wondering if there has been any progress on the CloseOnBackgroundTapped behavior?