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

How do I Style a Radio/Toggle button foregrounds?

1 Answer 109 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
b
Top achievements
Rank 1
b asked on 01 Nov 2011, 08:31 PM
Hi,

I'm trying to style some RadRadioButton and RadToggleButton buttons.  I need them to:
  • have transparent backgrounds in all states
  • gray text (foreground) when normal/unchecked
  • green text (foreground) when checked/mouse over

The version of the Telerik Silverlight libraries we're using uses ButtonChrome, which I think is deprecated (according to http://www.telerik.com/help/silverlight/radbuttons-styles-and-templates-styling-buttonchrome.html) but since we are near the end of our development process I don't think we can change to newer versions of the library.
I'm using Expression Blend 4 and managed to get the backgrounds to be transparent (by styling the ButtonChrome).  However, I've been unable to figure out how to get the text color to change.

I'd greatly appreciate any help in getting the foregrounds for these controls to change.

Thanks!
Billy

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 04 Nov 2011, 02:25 PM
Hi B,

I prepared a sample project where I edited the default style/ControlTemplate of the RadRadioButton and the RadToggleButton. Please have a look at the solution and let me know if this is the custom style I created fits your needs.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Buttons
Asked by
b
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or