UserControl, customize the control.
A question has just come to mind here. When should you define a control with UserControl. When should you rewrite the template and style of the control to achieve the new effect.
Quote someone's words: http://www.cnblogs.com/denghejun/p/3671061.html
My understanding:
UserControl should be a function with a control with a behavior. Some simple models, style effects, should be implemented with the template. Most of it is for rendering effect service, of course, it can carry many event triggers.
In addition, in some complex functional interface, it should be divided into several UserControl to implement independently.
I care about:
Dependency properties:
VS Express Input: PROPDP, a dependency property is generated quickly. This property can be used by binding.
Custom events:
"2016-11-11" "persist in Learning" "Day24" "WPF custom control attached property custom event"