Enterprise Architecture MVVM Pattern Guide (WPF and Silverlight implementations) (3)

Source: Internet
Author: User
Tags silverlight

Chapter One Presentation pattern
Separation of concerns (SOC) is a very useful core principle in enterprise and software development, and also the driving force behind many performance models. In WPF and Silverlight development, MVVM became the most effective design pattern for separation of concerns. However, this pattern is relatively difficult to achieve compared to other presentation modes (MVC,MVP).
This chapter begins with an example of a bill that runs through the book. In the process of reviewing performance patterns, using each of these patterns to make your bill project more clear about their pros and cons, this will help you understand why you should use the MVVM pattern.
Example of application of Bill of Fare project
We start with the basic function of the bill item, and the UI for the bill application is as follows:

When the project drop-down list is selected, the other cost control and update buttons become available. As shown below:

Now the user is free to update the contents of any cost control, and if the user sets the actual cost below the budgeted cost and clicks the Update button, the budgeted cost content will turn green.

When the user sets the actual cost above the budgeted cost, clicking the Update button causes the budget cost content to turn red.

To be continue ...

Enterprise Architecture MVVM Pattern Guide (WPF and Silverlight implementations) (3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.