I hope I got your request correct. It is possible to set different styles for UI elements that have different "class" names - i.e. different Class
property values. But the approach requires the usage of some of the more advanced settings of VSB and control designers. That's why I would suggest you an easier way to achieve what you need.
You can set the new font setting using just a few lines of code, without changing the Font
family in the following way:
|TextPrimitive textUI = (TextPrimitive)this.radLabel1.LabelElement.Children;
|textUI.Font = new Font(textUI.Font.FontFamily, 12f);
I assume that your label is called radLabel1
and that the theme applies the font settings directly on the TextPrimitive
element of the label.
I'm sending you a sample application that demonstrates the approach.
the Telerik team