Templates for multiplatform development
.NET MAUI is Microsoft’s framework that allows the development of multiplatform applications – that is, applications for Android, iOS, and Windows mainly, although it is possible to deploy applications on other platforms such as Tizen and macOS.
In order to be able to use these templates, in the Visual Studio Installer, we must select the .NET MAUI Multi-platform App UI development workload, as shown in Figure 2.21:
Figure 2.21 – The ".NET MAUI Multi-platform App UI development" workload
This type of project uses markup files with a .xaml
extension for the definition of the graphical interface while C# code is used to specify the business logic.
For example, to display text in a .xaml
file, a syntax like the following is used:
<Label FontAttributes="Bold" FontSize="30" Text="Packt" ...