Modernizing Your Windows Applications with the Windows App SDK and WinUI by Matteo Pagani | Marc Plogas

Modernizing Your Windows Applications with the Windows App SDK and WinUI by Matteo Pagani | Marc Plogas

Author:Matteo Pagani | Marc Plogas
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2022-03-28T00:00:00+00:00


Summary

One of the biggest challenges in software development is building projects that can survive the test of time. Of course, we can't control every aspect: there are many external factors outside our control, like the advent of new and more powerful technologies. However, by choosing the right architecture, we can protect our application from aging too fast. The MVVM pattern is a great example of how you can define the architecture of your Windows applications in a way that makes them easier to maintain, evolve, and test over time. By decoupling the UI from the business logic and the data layer, it becomes easier to create modular applications, in which you can replace one component or another when a new requirement arrives, rather than having to rewrite the application from scratch.

At the same time, however, you must remember that architectural patterns are best considered as guidance to help you build better applications, not a set of rules that you have to follow blindly. You must always find the right balance between good architecture and simplicity, otherwise you risk falling into the opposite problem: over-engineering.

The knowledge we acquired in this chapter will be very valuable in the next one: we're going to migrate a real application to WinUI and the Windows App SDK, and as part of the journey, we're going also to evolve it from the traditional code-behind approach to the MVVM pattern.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.