1 / 4

MVVM

MVVM. MVVM Pattern. Model View View-Model Allows reusable components within and across projects Allows thorough unit testing of every module Allows changing of user interface without refactoring code in other layers Separation of concerns. What is MVVM. M – Model which is the code

cuyler
Download Presentation

MVVM

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MVVM

  2. MVVM Pattern • Model View View-Model • Allows reusable components within and across projects • Allows thorough unit testing of every module • Allows changing of user interface without refactoring code in other layers • Separation of concerns

  3. What is MVVM • M – Model which is the code • V – View which is the user control • VM – View Model which is another class from which you the View gets its data. Implements INotifyPropertyChanged event

  4. DTO • Objective is to transfer state • Should have no behaviour • Create a data transfer object (DTO) that holds all data that is required for the remote call. Modify the remote method signature to accept the DTO as the single parameter and to return a single DTO parameter to the client. After the calling application receives the DTO and stores it as a local object, the application can make a series of individual procedure calls to the DTO without incurring the overhead of remote calls. Martin Fowler describes this pattern in Patterns of Enterprise Application Architecture [Fowler03].

More Related