官术网_书友最值得收藏!

A Smarter Way of Working with WPF

When Windows Presentation Foundation (WPF) was first released as part of the .NET Framework Version 3.0 in 2006, it was billed as the future of desktop application Graphical User Interface (GUI) languages and supporters claimed that it would put an end to the previous GUI technology, Windows Forms. However, as time passed, it has fallen far short of this claim.

There are three main reasons that WPF has not taken off as widely as previously expected. The first reason has nothing to do with WPF and stems from the recent push to host everything in the cloud and having web interfaces rather than desktop applications. The second reason relates to the very steep learning curve and a very different way of working that is required to master WPF.

The last reason is that it is not a very efficient language and if a WPF application has lots of 'bells and whistles' in, then either the client computers will need to have additional RAM and/or graphics cards installed, or they could face a slow and stuttering user experience.

This explains why many companies that make use of WPF today are in the finance industry, where they can afford to upgrade all users' computers to be able to run their applications optimally. This book will aim to make WPF more accessible to the rest of us by providing practical tips and tricks to help build our real-world applications more easily and more efficiently.

One of the simplest changes with the biggest workflow improvements that we can make to improve the way we work with WPF is to follow the MVVM software architectural pattern. It describes how we can organize our classes to make our applications more maintainable, testable, and generally simpler to understand. In this chapter, we will take a closer look at this pattern and discover how it can help us to improve our applications.

After discovering what MVVM is and what its benefits are, we'll learn several new ways to communicate between the various components in this new environment. We'll then focus on the physical structure of the code base in a typical MVVM application and investigate a variety of alternative arrangements.

主站蜘蛛池模板: 襄汾县| 海伦市| 宁津县| 长汀县| 龙海市| 汪清县| 怀安县| 马关县| 九江市| 泰来县| 陆川县| 福贡县| 鸡西市| 眉山市| 辽源市| 天津市| 桂平市| 辉南县| 义马市| 孟村| 北海市| 临潭县| 宣恩县| 沁源县| 拜泉县| 海南省| 澜沧| 江西省| 东辽县| 容城县| 博兴县| 大渡口区| 疏勒县| 社会| 彭水| 关岭| 绥江县| 宽甸| 德江县| 盐边县| 乐至县|