XAML syntax
Since XAML is an XML-based language, we need to understand basic XML syntax. An XML or XAML file includes a hierarchy of elements. Each element may have attributes associated with it. Let’s review App.xaml
in the project that we created in Chapter 2, Building Our First .NET MAUI App, as an example:
Listing 3.1: App.xaml (https://epa.ms/App3-1)
<?xml version = "1.0" encoding = "UTF-8" ?> <Application xmlns="http://schemas.microsoft.com /dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/ winfx/2009/xaml" xmlns:local="clr-namespace:PassXYZ.Vault" &...