Inversion of control with MVVMCross
In the last two chapters, we looked at the IoC container and bootstrapping fundamentals; now it's time to use a different library for this principle with Xamarin native.
For all projects, we want to import the MVVMCross
library:
Tip
MVVMCross is available for Xamarin.Forms
, Xamarin.iOS
, Xamarin.Android
, Xamarin.Mac
, and Windows, so take your pick.
MVVMCross is set up quite differently to AutoFac
, but the principles are the same.