Creating the WalkDistancePage interface using XAML
In this section, we will begin by defining the user interface for our WalkDistancePage
using XAML. This page will be used to display a full-screen map with a pin placeholder that, when tapped, will display information relating to the chosen trail from the ListView
that's contained within our WalksMainPage
.
Let's start by creating the user interface for our WalkDistancePage
by performing the following steps:
- First, create a new
Forms ContentPage XAML
calledWalkDistancePage
, like you did in the section entitled Creating the WalksMainPage interface using XAML, located within this chapter. - Next, ensure that the
WalkDistancePage.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/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:maps="clr-namespace:Xamarin.Forms...