Marked zone

2 posts, 0 answers
  1. Goncalo
    Goncalo avatar
    4 posts
    Member since:
    Sep 2012

    Posted 19 Dec 2011 Link to this post

    I would like to know how can I add programmatically (in WPF)  a marked zone with a transparent infill and colored borders?
    Whenever I set the Telerik.Windows.Controls.Charting.MarkedZone Background property to transparent and the BorderBush to blue (or any other colour) nothing is displayed.  I would like the chart to look like the one in the attachment.

  2. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 21 Dec 2011 Link to this post

    Hello Goncalo,

    Try setting Stroke / StrokeThickness instead and it should work:
    RadChart1.DefaultView.ChartArea.Annotations.Add(new MarkedZone(1, 2, 10, 15)
        Background = new SolidColorBrush(Colors.Transparent),
        Stroke = new SolidColorBrush(Colors.Blue),
        StrokeThickness = 1

Back to Top