I have come across a feature in Visual Studio so that Custom Investment User Control
But for example, for example, I did not find clear details about the sub-section of the button. In addition to doing it in a real way, I am also interested that VS provides useful code-generation for this?
You just create your own class that handles control, that you want to subclass. For example:
Class BetterButton: Button {...}
This is the easy part now what you have to do with your new control Depending on this, there is an option to override various methods or properties, it can be anything, in fact, once I was often seen, it is overriding onpoint to gain control in a custom way; And still the basic control is behaving.
In the context of UserControls, I often see that "parent" user control contains some UI logic and original UI elements, while subgroup controls are used for refining parents specific uses .
Comments
Post a Comment