Up to this point, we only have placeholder code in our MainShell file. Let's replace this with actual content, as follows:
- In the News project, open MainShell.xaml.
- Locate the FlyoutItem element with the title set to Home.
- Edit the XAML so that the ShellContent element becomes self-closing, add the following ContentTemplate attribute marked in bold, and replace the contents of the Tab element:
<FlyoutItem Title="Home"
Icon="{StaticResource HomeIcon}">
<ShellContent Title="Headlines"
Icon="{StaticResource HeadlinesIcon}"
ContentTemplate="{DataTemplate
views:HeadlinesView}" />
<Tab Title="News" Route="news" Icon="{StaticResource NewsIcon}">
<ShellContent Title="Local" Route="local" >
<ShellContent.ContentTemplate>
<...