Using Xamarin for cross-platform development
As we mentioned in the previous section, Xamarin was part of the Mono project and was an effort to support .NET on Android, iOS, and macOS. Xamarin exports the underlying operating system features to the .NET runtime. Xamarin.Forms is the cross-platform UI framework of Xamarin. .NET MAUI is an evolution of Xamarin.Forms. Before we discuss .NET MAUI and Xamarin.Forms, let us review the following diagram of Xamarin implementations on various platforms.
Figure 1.1: Xamarin implementations
Figure 1.1 shows the overall architecture of Xamarin. Xamarin allows developers to create native UIs on each platform and write business logic in C# that can be shared across platforms.
The transition from Xamarin to .NET MAUI, or more specifically from Xamarin.Forms to .NET MAUI, is not a revolution. .NET MAUI essentially represents a new version of Xamarin.Forms rather than other components of Xamarin. Xamarin.Android has now become...