Closed RLittlesII closed 3 months ago
This is by design. Prism.Maui will not work with the specific rule that you have:
WithDefaultIfAlreadyRegistered(IfAlreadyRegistered.Replace);
This is because of how the NavigationRegistry works in Prism.Maui where we actually use the DI Container to register an instance of ViewRegistration
for each View you register for Page Navigation, Region Navigation, or for Dialogs. We then resolve all of the instances of ViewRegistration. When you use IfAlreadyRegistered.Replace
this has the effect of replacing previously registered instances of ViewRegistration.
Description
When I provide my own DryIoc container rules to the PrismAppBuilder and provide a
.CreateWindow
the ViewRegistry isn't able to find my page.Steps to Reproduce
Platform with bug
.NET MAUI
Affected platforms
iOS
Did you find any workaround?
Not currently as of opening the issue
Relevant log output
Reproduction Project
Container.Rules.zip