CSS For Windows Controls (Part II)
In my last post I through out a simple idea for making the physical styling of WinForm controls an easier task. It seems that it is necessary to further clarify where I was going with this thought. In a comment posted despite obvious "...restrain," I feel several VERY incorrect conclusion were jumped to. So let's begin:
In my previous post I was specifically presenting an idea to control the physicall appearance of WinForm controls. Now a common practice when implementing either WEB or WinFom controls is to use inheritence to extend an already existing control. For example, you may wish to inherit from the standard texbox control and extend the control to only accept valid US Phone numbers. The validation could be handled using a regular expression. While the graphical look and feel can be controlled via inheritance there remains one gaping hole. The developer is responsible for deciding how the control looks.
My point is to seperate the developer from controlling the appearance of the controls. Under this model the same WinForm controls could be used in multiple WinForm applications or Smart Client Applications and the appearance can be easily changed per application via CSS. If a company develops applications for both the Web and Windows then the talents of the Web Designer could be put to good use styling WinForm and/or SmartClient Controls. To revamp the look of an application just apply a new CSS.
Once again this is only an idea but it seems to have potential XAML.