We have created the ViewModel that will be used by our WalksPage
so that the walk entries can be displayed within the ListView
control. The next step is to build the ViewModel that will be used to create new walk entries and have this information saved back to our WalkBaseViewModel
, which we will be covering in a later chapter as we progress through this book.
In this section, we will be taking a look at the steps required to create the ViewModel for our WalksEntryViewModel
so that we can initialize, and capture information entered within this screen.
Let's take a look at how we can achieve this, by following these steps:
Create a new class file within the
ViewModels
folder calledWalksEntryViewModel
, as you did in the previous section, entitled Creating the WalkBaseViewModel located within this chapter.Next, ensure that the
WalksEntryViewModel.cs
file is displayed within the code editor, and enter in the following code snippet.// ...