Overview of .NET MAUI Embedding in Uno Platform
The .NET MAUI Embedding feature allows 3rd party .NET MAUI control libraries to be used within an Uno Platform application. This integration is limited to platforms supported by .NET MAUI: iOS, Android, macOS, and Windows.
The integration relies on two main components:
- A .NET MAUI class library containing the controls.
- The
MauiHostcontrol (from theUno.Extensions.Maui.WinUIpackage), which acts as the container in the Uno application.
The Source property of the MauiHost specifies the type of .NET MAUI control to embed. The DataContext of the MauiHost is automatically mapped to the BindingContext of the embedded .NET MAUI control. It is recommended to host a .NET MAUI ContentView as the Source rather than individual controls to simplify layout and data binding in XAML.