Continue to toss mvvm today

Source: Internet
Author: User

The last one was July June 1. Today is July 22, August 9. The time has passed so fast that it will take more than two months.

To optimize the application of MVP in WPF. Mvvm is a good concept. Bind commands and data ...... Awesome!

As you can see, many brothers directly call the MessageBox. Show () method in viewmodel of mvvm. I am very opposed to this writing method. This method is difficult to test in unit testing. The IDE will pop up a prompt box ...... Poor design .....

There are two purposes to make this happen today. The purpose is as follows:

1. Give an example that follows the Dependency inversion principle;

2. To a certain extent, they can be vigorously promoted in the company.

It's not easy. I'm about to get off work. I need to wash my hands.

 

I did not draw a picture this time, but I still use the original figure,CodeHere:/files/Zhonghua/mvvm.rar

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.