If you search for MVVM in your favorite search engine, you will find that several MVVM libraries are available. Microsoft originally developed one library called Prism. Since then, several other libraries have come along, such as Unity, Caliburn, Micro, and MVVM Light. It is highly recommended that you evaluate all of them to find one that suits your team and project. In this book, we're going to use MVVM Light because, as the name implies, it's a lightweight version of the full implementation of the MVVM pattern. It also can be applied to Windows Store and Windows Phone.
Let's rebuild the app again, but this time with MVVM Light. Create a new ArcGIS Runtime app as you've done before. In the following steps, the app is called Chapter2a
:
Using NuGet, install MVVM Light in your new project. Right-click on the project and click on Manage NuGet Packages. In the search box in the upper-right corner of the window, type
mvvmlight
, as shown here:Click on MVVM Light, and then...