There's a better set of tools than using Windows Presentation Foundation (WPF) straight out of the box: WPF plus Prism (formerly "Composite Application Guidance for WPF and Silverlight") and Unity.
After the first part of this series dealt with Windows Forms, we will now look at Windows Presentation Foundation (WPF) and Windows UI Library 3 (WinUI 3). Both GUI frameworks are based on XAML ...