O'Reilly logo

Learning ArcGIS Runtime SDK for .NET by Ron Vincent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

MVVM in action (without a toolkit)

Setting up an app to use the MVVM pattern is relatively straightforward, but can involve a lot of boiler plate code. Let's illustrate this so that you can see all of the steps and the way things work exactly:

  1. Create a new ArcGIS Runtime app as you did in Chapter 1, Introduction to ArcGIS Runtime. Name your project Chapter2.
  2. Go ahead and copy the XAML and code-behind file from that project to this new project.
  3. Create a new, standard C# class. Name the file Model.cs, as shown here:
    MVVM in action (without a toolkit)
  4. Add the following code to the Model class:
    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required