In order to use MVVM Light within your Xamarin application, you must first add it into the application. The process is different depending on whether you are doing this on a Mac (with Visual Studio for Mac) or Visual Studio. The reason for this is simple—on a Mac, you are not able to create for Windows Mobile. This may not seem like a big difference, but when setting up a project with MVVM Light, it is.
In this chapter, we’ll create our project as well have a brief look at the two important files provided by MVVM Light: ViewModelLocator.cs and MainViewModel.cs.