In the last post, I showed you how to use the IServiceProvider interface in general for dependency injection in your Xamarin.Forms app. In this post, I will show you how to add multiple registrations of the same ViewModel type and make them accessible with a key.
The post Using Microsoft’s Extensions.DependencyInjection package in (Xamarin.Forms) MVVM applications (Part 2) appeared first on MSicc's Blog.