
Learn WinUI 3.0
By :

It's time to build a simple WinForms app that will host a custom UWP user control from another project. We will create a UWP project containing a simple input form and add it to a window in a .NET 5 WinForms project. You can use an earlier version of .NET Core if you like, but we will use .NET 5.0 in this example.
We will start off by creating the UWP class library. Class libraries help promote code reuse and encapsulate UI appearance and behavior. A NuGet repository is a great way to share code within your company and the OSS community. You can find out more information about NuGet hosting options on Microsoft Docs at https://docs.microsoft.com/en-us/nuget/hosting-packages/overview.
Note
We are creating a UWP class library because XAML Islands does not support WinUI 3.0 projects yet. Once this support is available, you will be able to follow this same technique with a WinUI...