I updated to 7.2 and I'm trying to use the DialogService. In following the example in the release notes, it seems that if the view is based on Grid it cannot be registered with the container (Unity). If I change the view to be a ContentPage I can get it to register with the container but when I run my test and tap a button that should launch the dialog via ShowDialog, I get the following error:
Specified cast is not valid.
at Prism.Services.Dialogs.DialogService.CreateViewFor (System.String name) [0x00000] in d:\a\1\s\Source\Xamarin\Prism.Forms\Services\Dialogs\DialogService.cs:154
at Prism.Services.Dialogs.DialogService.ShowDialog (System.String name, Prism.Services.Dialogs.IDialogParameters parameters, System.Action`1[T] callback) [0x00044] in d:\a\1\s\Source\Xamarin\Prism.Forms\Services\Dialogs\DialogService.cs:31
I'm not sure what is going wrong. The only difference in my code is that my test button is in a contentpage in a tabbedpage.
I think the docs need to be updated with an example that works.
Thanks for any help.