Migrating a WPF application
Migrating from a WPF application usually requires a lot less effort than for Windows Forms. This is due to at least two reasons:
- WPF applications already leverage XAML as the UI description language. While the actual XAML syntax might be different, it can easily be transformed into the WinUI XAML syntax. Concepts such as converters or resources are usually well understood.
- Given the effectiveness of XAML binding, many WPF applications are already built upon the MVVM architecture. While there were many MVVM frameworks for WPF available, such as MVVM Light, Prism, or lightweight DIY frameworks, they all follow the same principle. Not only that, MVVM is (almost) always accompanied by the use of IoC. This means that you might need to rework the XAML pages a bit, but you will be able to reuse almost all of your data layers and
ViewModel
classes without changes.
We are going to start by taking a quick inventory of the WPF application again...