What if we could create CSS styles in C#?
Skinning would be soooo easy.
Think of the ZenGarden but in winForms.
public style Overdue
{
fontname = tahoma;
fontsize = 10px;
forecolor = white;
backcolor = red;
}
then, when applying the style to any object, if the object has the properties then it applies the value to the property, if not it just ignores it.
if (dueDate < today) textAmount.style = Overdue;
what do you think?