How do I Style a Radio/Toggle button foregrounds?

2 posts, 0 answers
  1. b
    b avatar
    9 posts
    Member since:
    Sep 2010

    Posted 01 Nov 2011 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top