I am building a Xamarin Forms app and I received an error message on the MainViewPage.xaml on line 10: -
Resources in ResourceDictionary require a x:Key attribute
<?xml version="1.0" encoding="utf-8" ?>
<FlyoutPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ff="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
xmlns:vm ="clr-namespace:InventoryTrackerApp.ViewModels.Storage"
x:Class="WineryTrackersApp.Views.Weather.MainViewPage"
xmlns:pages="clr-namespace:InventoryTrackerApp.Views.Storage">
<FlyoutPage.Resources>
<pages:MainViewPageFlyout x:Name="FlyoutPage" />//Error message appears here
<ResourceDictionary>
<Color x:Key="MainColor">Black</Color>
<Style TargetType="NavigationPage">
<Setter Property="BarBackgroundColor" Value="Black"/>
</Style>
</ResourceDictionary>
</FlyoutPage.Resources>