In Chapter 17 you saw how a
Geolocator provides geographic location updates. In this section you see how the custom
IGeoLocator (presented in that chapter) can be used to track the location of the phone using a Map control.
StartTracking method instantiates either a
GeolocatorProxy or a
MockGeoLocator, depending on whether the class is executing within the emulator (see Listing 18.2).
PropertyChanged event is raised, the
PositionStatus properties are updated. Changing the
Center property changes the visible center point of the
Map control and pans the map to the new
AppBarToggleButton in the view is data-bound to the viewmodel’s ...