Creating the WalkEntryPage interface using XAML
In this section, we will begin by defining the user interface for our WalkEntryPage
using XAML. This page is called whenever the user taps on the Add
button from the WalksMainPage
and will be used to allow the user to add new walk trail information.
There are a number of ways you can go about presenting this information to collect data, but for the purpose of our app, we will be using a TableView
and a number of EntryCell
fields, as well as a Picker
control.
Let's start by creating the user interface for our WalkEntryPage
by performing the following steps:
- First, create a new
Forms ContentPage XAML
calledWalkEntryPage
, as you did in the section entitled Creating the WalksMainPage interface using XAML, located within this chapter. - Next, ensure that the
WalkEntryPage.xaml
file is displayed within the code editor, and enter the following code snippet:
<?xml version="1.0" encoding="UTF-8"?> <ContentPage xmlns="http://xamarin.com/schemas...