I wish to use XAML island for the C# winform application in .net6.0. Does it support it?
@VishnuGopalakrishnan-8317, Welcome to Microsoft Q&A,
Does .net6.0 support xaml island?
No, based on my test, It will throw the error when I installed the nuget-package
Microsoft.Toolkit.Forms.UI.Controls and rebuild the project in .NET 6.0 winform project.
If I changed .NET Framework to .net core 3.1, it rebuilds well without the error.
Therefore, it is not supported in .net 6.0.
Hope this could help you.
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
No, as the doc says :
Using XAML Islands (wrapped controls or WindowsXamlHost) to host UWP XAML controls is supported only in apps that target .NET Core 3.x. XAML Islands are not supported in apps that target .NET, or in apps that target any version of the .NET Framework.
There is XAML Islands for .NET 5, but I did not test it
17 people are following this question.