This is a migrated thread and some comments may be shown as answers.

Font color for group button

1 Answer 20 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ching-Yen
Top achievements
Rank 1
Ching-Yen asked on 29 Apr 2008, 12:12 PM
Hi,

We are trying to change the font color of the group button by using the Edit UI elements, but seems like no luck.

We are setting the PanelBar Theme to Office2007Black, and trying to change the group button text from white to black.

Please advice.

1 Answer, 1 is accepted

Sort by
0
Kiril
Telerik team
answered on 29 Apr 2008, 04:04 PM
Hi Ching-Yen,

Thank you for writing.

You can change the color of the font of the text in the group item by setting the ForeColor property of the RadPanelBarVisualElement using the Element Hierarchy Editor at design-time.

Alternatively, you can change it at runtime, using the code below:

((Telerik.WinControls.UI.

RadPanelBarVisualElement)(this.radPanelBarGroupElement4.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0))).ForeColor = System.Drawing.Color.Red;

The code above assumes that radPanelBarGroupElement4 is an instance of the RadPanelBarGroupElement class.

If you have any additional questions, please contact me again.

Sincerely yours,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Ching-Yen
Top achievements
Rank 1
Answers by
Kiril
Telerik team
Share this question
or