How do I programmically change the color of a tab(s) on the tabstrip depending certain conditions. I tried changing both the foregcolor and backcolor properties but it does not work. Do I have to change the "theme"? if so how?
3 Answers, 1 is accepted
answered on 08 Jun 2007, 03:56 PM
You could use the ClassSelector class to select the fill of the TabItem and then modify the BackColor properties of that TabItem. The following code demonstrates how to change the backColor of an instance of TabItem.
How would I do the same thing for the various states of the tabs?
answered on 18 Dec 2008, 03:47 PM
I think the only possible approach here is to handle the Mouse events of the control and apply different colors in the different states. However the best approach is to build your own custom theme using our tool for building themes - VisualStyleBuilder. You can find more information about it here: http://www.telerik.com/help/winforms/themes_overview.html
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.