Font color for group button

2 posts, 0 answers
  1. Ching-Yen
    Ching-Yen avatar
    65 posts
    Member since:
    Nov 2007

    Posted 29 Apr 2008 Link to this post


    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.
  2. Kiril
    Kiril avatar
    158 posts

    Posted 29 Apr 2008 Link to this post

    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:


    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft banner
Back to Top