Modernizing a WPF application with XAML Islands
Adding a XAML Island to a WPF project is much like adding one to WinForms. In this section, we will add the EntryForm
control to a new .NET 5 WPF project. This process will also work with your existing .NET Core and .NET Framework WPF applications, provided they meet the minimum version requirements discussed earlier in this chapter. Let's get started:
- Start by right-clicking the XamlIslandsSample solution and selecting Add | New Project.
Note
If you didn't complete the previous section with the WinForms example, you can go back and follow the Creating a shared class library project section to create your starter solution with the UwpApp project.
- From the Add a new project dialog, select the WPF App (.NET Core) template in the language of your choice and click Next.
- Name the project
XamlIslandsSample.WpfCore
and click Create. The new project will be added to Solution Explorer. - Open NuGet Package Manager for...