Implementing the walk trail page ViewModel
In this section, we will be taking a look at the steps required to create the ViewModel for our
WalksTrailViewModel so that we can obtain the walk entry information associated with the chosen walk that has been selected from the main
Let's take a look at how we can achieve this, by following these steps:
- Create a new class file within the
WalksTrailViewModel, as you did in the previous section entitled Creating the WalkBaseViewModel, located within this chapter.
- Next, ensure that the
WalksTrailViewModel.csfile is displayed within the code editor, and enter the following code snippet:
// // WalksTrailViewModel.cs // TrackMyWalks ViewModels // // Created by Steven F. Daniel ...