Unable to display dialog using IDialogService (.NET 8/Prism 9.0.271-pre) #3008
Replies: 2 comments
-
New information... If I specify either or both of the RelativeHeightRequest/RelativeWidthRequest in th Xaml of the view I am using as the dialog...
The dialog does not show. If however I remove these attributes and set the dialog size manually (HeightRequest/WidthRequest), the dialog shows and operates correctly. Gets me by for now to simply remove the attributes, but I still do not understand why it is that they do not work. Is this me, is this unfinished functionality in the preview build I am using, or is this a bug? |
Beta Was this translation helpful? Give feedback.
-
But that now gives me a new error if I click the back button 😒😒
|
Beta Was this translation helpful? Give feedback.
-
Having had it confirmed that the latest build (9.0.271-pre) supports IDialogService in MAUI, I am still struggling to actually make this work. As @dansiegel has already pointed out to me, the documentation is out of date (it says that IDialogService is not supported in MAUI and also defines IDialogService differently to the XF examples) so I have been trying to find my own way around it but am struggling to find any working examples.
The attached project reproduces my problem. If you click on the "Dialog" button on the main page (or the flyout page), you see the mask for 5 seconds and then it clears (note: this is deliberate as the dialog is closed automatically from the viewmodel - it will be used to show a task status) but you do not see any of the content defined in the SynchronisationDialog.xaml.
Any help identifying what I have missed will be greatly appreciated.
(note: Please ignore the use of the TaskDialogViewModelBase; this is a hangover from a previous example and does not actually belong to the problem as the "OnNavigatedTo" is not used in IDialogService as far as I can see).
Thanks.
PrismIssue.zip
Beta Was this translation helpful? Give feedback.
All reactions