Search code examples
wpf.net-coreuwpwinuiwinui-3

How can I find out whether you are using WinUI 2 or WinUI 3?


Currently, I try to learn how to use UWP UI component, in WPF application.

I'm following the examples in https://github.com/rvinothrajendran/XamlIslands

However, may I know, how can I find out, whether the example is using WinUI 2, or WinUI 3?

Thanks.


Solution

  • If you look in the WPFXamlTemplate.csproj file, you'll see that it has a <PackageReference> to Microsoft.Toolkit.Wpf.UI.Controls 6.0.0-preview5.

    This is known as the Windows Community Toolkit which is a separate project from Win UI.

    It uses XAML Islands host the native UWP controls in the WPF application.