What is XAML Islands?
XAML Islands is a layer of technology from Microsoft that ships as part of the Windows Community Toolkit. It allows your WPF, WinForms, and C++ Win32 applications to embed a UWP control in an interop layer on your application's windows. We touched on XAML Islands when we reviewed the controls in the Windows Community Toolkit in Chapter 9, Enhancing Applications with the Windows Community Toolkit.
The WCT includes a WindowsXamlHost
control that can embed any first-party UWP control from Microsoft, as well as any third-party or custom UWP control. Using this control in a WPF or WinForms application is only supported in projects targeting .NET Core 3.x and later.
The other option with XAML Islands is to use one of the wrapped controls provided by the WCT. There are a handful of UWP controls that are already wrapped inside a host control and distributed through the toolkit. Providing these controls pre-wrapped in a XAML Islands host saves developers the...