Change color of static item

2 posts, 0 answers
  1. Henrik
    Henrik avatar
    23 posts
    Member since:
    Feb 2012

    Posted 02 Nov 2013 Link to this post


    I have a scenario where I need to draw a RED line as an upper marker like in this example.

    The line itself is no problem, but can I change the color when making the series programically?
  2. Marin Bratanov
    Marin Bratanov avatar
    3562 posts

    Posted 04 Nov 2013 Link to this post

    Hi Henrik,

    The main color of a series is under its Appearance inner element - the Fill Style element has a BackgroundColor property: You can set it either in markup, or in code-behind, e.g.:
            <FillStyle BackgroundColor="Red" />
    LineSeries ls = new LineSeries();
    ls.Appearance.FillStyle.BackgroundColor = System.Drawing.Color.Red;

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top