In the last section, we created the ArticleItem content view. This view (the ArticleView) will contain a ListView where each cell will render one ArticleItem. But for the moment, let's just add the ArticleView as a placeholder. Follow these steps to do so:
- In the News project, right-click the Views folder, select Add, and then click New Item... .
- Select Xamarin.Forms under the Visual C# Items node on the left.
- Select Content Page and name it ArticleView.
- Click Add to create the page.
Since this view is also a placeholder view at the moment, we'll just add a label to indicate the type of page. Edit the content as shown by the following few steps:
- In the News project, open Article.xaml.
- Edit the XAML code by adding the following code marked in bold:
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com...