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

What is MVVM and how does it help?

Model-View-View Model (MVVM) is a software architectural pattern that was famously introduced by John Gossman on his blog back in 2005 and is now commonly used when developing WPF applications. Its main purpose is to provide a Separation of Concerns between the business model, the User Interface (UI), and the business logic. It does this by dividing them into three distinct types of core components: Models, Views, and View Models. Let's take a look at how they are arranged and what each of these components represent:

As we can see here, the View Models component sits between the Models and the Views and provides two-way access to each of them. It should be noted at this point that there should be no direct relationship between the Views and Models components and only loose connections between the other components. Let's now take a closer look at what each of these components represent.

主站蜘蛛池模板: 云龙县| 论坛| 鄂托克旗| 扎赉特旗| 宝清县| 壤塘县| 视频| 富锦市| 乐业县| 潜山县| 揭西县| 微博| 灵台县| 华亭县| 泰宁县| 蒙阴县| 洛南县| 德惠市| 晋江市| 嵊泗县| 靖安县| 醴陵市| 仪陇县| 桦甸市| 平泉县| 罗平县| 沙洋县| 万载县| 延庆县| 陵水| 蒙自县| 新建县| 石河子市| 临沧市| 朝阳市| 甘谷县| 红河县| 孟连| 辽宁省| 拉孜县| 沐川县|