I registered the view with the view model after constructing the ViewLocator
However, it is not used correctly when displaying dialog.
The view model is correctly registered in the IDialogService, and the dialog is displayed with the registered contents.
However, when the Locate method is triggered, Registrations is empty.
If I register it in the constructor, it displays correctly.
Oh, I know why.
Because the ViewLocator is set up in app.axaml, it doesn't use the ViewLocator that I've registered.
Just add the registered ViewLocator in the code.
I registered the view with the view model after constructing the ViewLocator However, it is not used correctly when displaying dialog.
The view model is correctly registered in the IDialogService, and the dialog is displayed with the registered contents. However, when the Locate method is triggered, Registrations is empty.
If I register it in the constructor, it displays correctly.