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

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.

主站蜘蛛池模板: 兴文县| 普兰店市| 沙洋县| 区。| 遵化市| 乳源| 淅川县| 芦溪县| 弥渡县| 兴仁县| 华亭县| 巴青县| 余干县| 马关县| 应城市| 葫芦岛市| 汝阳县| 宁阳县| 来宾市| 宿迁市| 湖北省| 长武县| 大渡口区| 灵台县| 岳池县| 昌宁县| 昭通市| 饶平县| 册亨县| 治县。| 丰城市| 新乡市| 太仓市| 信丰县| 乳山市| 房产| 肃南| 英山县| 吴川市| 嵊州市| 正蓝旗|