[External - Apizr.Integrations.Shiny] Register/Resolve IEnumerable<T>
JeremyBP opened this issue · 4 comments
Dan just pushed its container extensions packages on NuGet with multiple instance registration/resolution feature, witch finally fix this. Please make sur to update to at least v8.0.48
Dan刚刚使用多实例注册/解析功能将其容器扩展包推到了NuGet上,终于解决了这个问题。请使sur至少更新到v8.0.48
Hi, Jeremy BP, I recently tested your suggestion,the Prism.DryIoc.Extensions after upgrading to 8.0+, bug still exist.
crg.RegisterForNavigation<LazyContentPage, view1ViewModel>(nameof(view1));
crg.RegisterForNavigation<LazyContentPage, view2ViewModel>(nameof(view2));
"view2ViewModel" only work, "view1ViewModel" cannot be instantiated
Dan just pushed its container extensions packages on NuGet with multiple instance registration/resolution feature, witch finally fix this. Please make sur to update to at least v8.0.48
Do you guys could share a sample project?
I mean it doesn't look like to be related to Apizr. What you described is more about Prism and maybe you should consider to open an issue on its repo or ask the question on Stackoverflow.
Anyway, if you attach a sample project, I could investigate a bit.
After some googling, I found that Prism doesn't allow multiple vm registration for same view AFAIK.
There's an old pull request about it but rejected: PrismLibrary/Prism#1514
There's an entry on stackoverflow about it also: https://stackoverflow.com/a/52456663/14654700
The last vm registered will override others, in your case it's view2ViewModel.