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

How to Change Legend highlight color

1 Answer 52 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 28 Oct 2013, 02:06 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 31 Oct 2013, 02:17 PM
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 >>
Tags
Chart
Asked by
Alexander
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or