Problem with DefaultVisualStyle

2 posts, 0 answers
  1. Brendan
    Brendan avatar
    34 posts
    Member since:
    Oct 2010

    Posted 15 Aug 2012 Link to this post

    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.
  2. Evgenia
    Evgenia avatar
    1398 posts

    Posted 17 Aug 2012 Link to this post

    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.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top