Design of custom controls and Custom Controls

Source: Internet
Author: User

Design of custom controls and Custom Controls

The code in the project has been written a lot. Recently I went back to see that there are too many simple projects. Wpf mvvm is a very practical mode. The premise is that the control must be supported. Wait, are there any controls that do not support binding? The basic controls are not listed here. However, in practice, you often encounter controls that need to be combined to put a group of controls together to complete a basic function. You also need to change the display format of controls according to different situations. Of course, these requirements can be implemented through style, template, and converter. In practice, I think the form of the control seems more effective. If developers focus on business logic, WPF-related code is always messy. In another way, if the developed WPF control is still reusable, the project's high cohesion and low coupling are easier to achieve? Although it is not a good practice to always consider reuse, in turn, it is not desirable to consider reuse at all.

In the design of custom space, dependency attributes, routing events, simple writing and writing seem to be very simple, but application in specific scenarios always encounter many problems. There is time to make a summary.

Related Article

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.