//Add a SharedResources.cs class in yout project directory. namespace YourProject; static class SharedResources { //Define the XML Properties here to be used in other pages. public static readonly Color FontColor = Color.FromRgb(0, 0, 0xFF); public static readonly Color BackgroundColor = Color.FromRgb(0xFF, 0xF0, 0xAD); } /* Add the XML following namespace declaration to the ContentPage element, before the x:Class attribute. This declaration brings the classes in the C# YourProject namespace into scope in the XAML page: */ <ContentPage ... xmlns:notes="clr-namespace:YourProject" x:Class="YourProject.MainPage" ...>