Chapter 8. Customizing the User Interface
In the previous chapter, we learned how to incorporate platform-specific features into the TrackMyWalks
application, depending on the mobile platform that is being run, as well as how to incorporate the NuGet package into the shared-core project solution.
You learned how to create a LocationService
Interface and Class, which included a number of class instance methods used by our iOS and Android platforms to handle location-based features and obtain current GPS coordinates, as well as handling location updates in the background on the mobile device. You learned how to make relevant changes to both WalkEntryPageViewModel
and WalkDistancePageViewModel
to allow for location-based features to work, before moving on to creating a CustomMapOverlay
class that will be used to display a native Map control, based on the current platform.
Lastly, you updated WalkDistancePage.xaml
and the code-behind file to handle location updates so that it will automatically...