In a Xamarin.Forms app, we can define application-wide resources that we can use anywhere in our app. They are added in the same way as page-/view-specific resources but to the App.xaml file instead. Let's add a reference to FontAwesome that will be unified under one name in our Xamarin.Forms app, as follows:
- In the News project, open App.xaml.
- Add the following code marked in bold:
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/
markup-compatibility/2006"
mc:Ignorable="d"
x:Class="News.App">
<Application.Resources>
<ResourceDictionary>
<OnPlatform...