Search code examples
wpfwindows-community-toolkitxaml-islands

I can use XAML Islands in WPF just if the .NET Core is the target platform?


I'd like to use XAML Islands in my WPF project, which targets .NET Framework. I tried to add to my project, but I couldn't make it work. This article says that the WPF apps are supported, but the documentation says that:

Using XAML Islands to host WinRT XAML controls is supported only in WPF and Windows Forms apps that target .NET Core 3.x. XAML Islands are not supported in apps that target the .NET Framework.

This means that the only thing what I can do is to migrate my project from .NET Framework to .NET Core? This would be a huge work... Do I have any other possibilities to use the XAML Islands?


Solution

  • The short answer is no.

    You must migrate to .NET Core / .NET 5 in order to use XAML Islands.

    Depending on your app and what third-party dependencies you have, migrating can be pretty simple.