: You can read Chapter 3: WPF Fundamentals for free on CODE Magazine.
All code samples target and can be opened directly in Visual Studio 2019/2022 (or any compatible IDE). Wpf 4.5 Unleashed Pdf Github
Chapter 10 covers creating custom controls. GitHub repos like MahApps.Metro or MaterialDesignInXamlToolkit extend this concept exponentially. Study their source code to see how professional developers handle: : You can read Chapter 3: WPF Fundamentals