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

Problem with DefaultVisualStyle

1 Answer 52 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Brendan
Top achievements
Rank 1
Brendan asked on 15 Aug 2012, 05:42 AM
I'm having a problem when using DefaultVisualStyle on a BarSeries. I'm using the following code:

Style style = new Style(typeof(Border));
style.Setters.Add(new Setter(Border.BackgroundProperty, brush));
 
Series.DefaultVisualStyle = style;

Initially the style works correctly, however when I remove a series with a smaller index from the chart the bar reverts back to the standard palette colors i.e. if I set the style to a bar series at index 3 and remove the series at index 1 the bar color changes when it should stay the same.

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 17 Aug 2012, 01:24 PM
Hi Brendan,

 I was able to reproduce this unwanted behaviour, thanks for pointing it out. Our developers will further investigate it. You can follow the PITS Issue by its ID: 12337 or by its Public URL .

Your Telerik points are updated as a sign of gratitude.

Regards,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Brendan
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or