I’m getting started in c# development, and heard it said that all the standard controls should be ‘wrapped’ in a custom class, even if I don’t add any extra functionality at this point. The example that cited this case was an application where someone had developed a system, and the night before deployment the customer asked for the textboxes to behave a certain way, something similar to the old mainframe system, and the developer was able to implement this functionality in 15 minutes by modifiying their control subclass, or class, or whatever it was.
Should I create custom wrappers for the standard controls this way?
I personally don’t do this and I don’t think I’d recommend it if you are just getting started in C# development.
I do wrap up controls at a higher level and use a Model View Presenter pattern to separate the data and the visuals allowing a change of controls without rewriting the logic.