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

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.

主站蜘蛛池模板: 靖安县| 安陆市| 宁海县| 老河口市| 汝城县| 沾益县| 繁峙县| 九寨沟县| 明水县| 东明县| 斗六市| 湄潭县| 临泽县| 大英县| 富锦市| 澎湖县| 商洛市| 辽宁省| 铜梁县| 阳新县| 田阳县| 旬邑县| 庐江县| 阳高县| 房山区| 昌吉市| 和田县| 阜阳市| 盐津县| 庄浪县| 桃园县| 青河县| 彭山县| 临城县| 双辽市| 泰州市| 浑源县| 太康县| 余姚市| 彰化县| 惠水县|