We're going to start by defining a basic structure for the app without really adding any of our defined views to it. After that, we'll add the actual views one by one. But let's start by adding some content and creating ContentPage objects using XAML directly. Follow these two steps to do so:
- In the News project, open the MainShell.xaml file.
- Alter the file so that it looks like the following code:
<?xml version="1.0" encoding="UTF-8"?>
<Shell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:News.Views"
x:Class="News.MainShell">
<FlyoutItem Title="Home"
Icon="{StaticResource HomeIcon}">
<ShellContent Title="Headlines" Icon="{StaticResource
HeadlinesIcon}" >
<ContentPage...