Template 10 dependency injection using MEF
问题 I'm familiar with using MEF in .NET Framework 4.6.* but not in .NET Core. I'm messing about with the Hamburger template from Template 10 to see if it is suitable for my needs but I haven't been able to figure out how to compose my view models using MEF. My question is how can I navigate to a view using the navigation service in such a way that its view model will be injected by MEF? 回答1: I have one way of getting this working but it seems a bit code smelly so better answers are welcomed. I