Migrating a UWP app
The Windows App SDK and WinUI can be considered the direct successors of UWP. In fact, its goal is to detach many of the UWP APIs and features from the operating system so that they can be consumed also by Win32 applications.
Consequently, among the technologies we have seen in this chapter, UWP is, for sure, the easiest one to start a migration from.
The high-level migration approach is similar to the one we have adopted to migrate our WPF sample application: as the main architecture pattern is already in place, it's mostly a matter of updating to the latest version of the Windows Runtime APIs and adapting to changes in the API. The documentation often provides a suggested migration path. In fact, moving from UWP could even be an easier task than moving from a .NET 4.x-based WPF application, as IoC and MVVM are likely provided by the same frameworks and packages as their Windows App SDK counterpart.
Most Windows Runtime APIs can be used in Windows...