Hello Manfred Pohler,
Thank you for writing.
You are correct, ForeColor
is not taken into consideration when setting the ForeColor
when a Theme is used. This follows the Microsoft convention for behavior of basic properties in complex controls. For example, the ForeColor property of the Micrisoft TabControl is hidden.
In our controls, you can still change the value of the ForeColor
, but it only applies when there is no theme applied. You can have a situation where no Theme is set by setting the ThemeName
property to a non-existent theme name, such as "notheme". Once there's no theme applied, the ForeColor
property you have set from the control will be applied.
You can still achieve an appearance that is a combination of theme values and values that you have provided:
1. Use the UI Elements Editor, which you can launch using the smart tag at design-time. Once the dialog shows, you'll see a tree on the left, indicating the structure, and a property grid on the right, where you can set property values for the element selected in the tree on the left. In your particular case, select the TextPrimitive in the tree on the left, and set its ForeColor property in the property grid.
2. Create a theme using the Visual Style Builder. Open the VSB, load the RadButton, select the TextPrimitive from the tree in the left dock window, and change its ForeColor property in the right dock window. You can then save the theme, and load it at designtime.
I hope this helps. If you have any further questions, please contact me.
the Telerik team