This view will eventually show a list of news, but in the first section of this chapter, it will be kept simple. Follow these steps to create the page:
- In the News project, create a folder named Views.
- Right-click the Views folder, select Add, and then click New Item... .
- Under the Visual C# Items node on the left, select Xamarin.Forms.
- Select Content Page and name it HeadlinesView.
- Click Add to create the page.
Refer to the following screenshot to view the preceding information:
Let's add some placeholder code to the HeadlinesView, just to have something to navigate to and from. We will replace it with something hotter later on in the chapter, but to keep things simple, let's add a label. To do so, proceed as follows:
- In the News project, open HeadlinesView.xaml .
- Edit the XAML code by adding the following code marked in bold:
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns...