I'm on Prism Unity 8.1.97 with VS2022 and net6.0-windows project.
In my App.xaml.cs I registered a dialog like this inside RegisterTypes():
containerRegistry.RegisterDialog<MyDialog, MyViewModel>();
When the application tries to show the dialog like this:
_dialogService.ShowDialog("MyDialog", parameters, r => { });
I can see the following Debug output in Visual Studio but the debugger doesn't break so I get no info on the exception:
Exception thrown: 'Prism.Ioc.ContainerResolutionException' in Prism.Unity.Wpf.dll
I tried this in App.xaml.cs to get more info on the exception but the event handler doesn't seem to execute. Dialogs aren't modules?
While debugging the application, I can do the following and it returns a not null object:
_iocContainer.Resolve<object>("MyDialog")
How can I get access to the ContainerResolutionException details?
Why isn't this working anyway?