How to Change Legend highlight color

2 posts, 1 answers
  1. Alexander
    Alexander avatar
    17 posts
    Member since:
    May 2012

    Posted 28 Oct 2013 Link to this post

    I have application with RadPieChart and RadLegend attached to it. Legend is built automatically from Chart.

    From RadLegend styles I can see what legend item highlight color is build into style (#FFF1F1F1 for Windows8). Is there any way to change it?
    Our application use custom themes and on 3 themes from 4 highlight is not visible.

    Thank you,
    Alex
  2. Answer
    Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 31 Oct 2013 Link to this post

    Hi Alexander,

    You can fairly easy achieve this if you modify the default LegendItemControl Template for Windows 8 theme (you can find the default one under your local controls installation path - C:\ProgramFiles\Telerik\RadControls_for_Silverlight5_2013_3_1016_Trial\Themes\Windows8\Themes\Telerik.Windows.Controls.xaml) There are two approaches to choose from:
    1. Retemplate the default LegendItemControlStyle and apply your own color to the Highlighted Visual State.
    2. Use our implicit style mechanism to modify the default LegendItemControlStyle. Please follow this article that will shed more light on implicit styles. You may do the changes directly in the Telerik.Windows.Controls.xaml file in your project.

    Regards,
    Evgenia
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top