Dynamicly adding a RangeList to a Radial Gauge

2 posts, 1 answers
  1. Dan
    Dan avatar
    202 posts
    Member since:
    May 2006

    Posted 10 Oct 2011 Link to this post

    I am trying to add ranges to a Radial Gauge.  Code snippet:
    RangeList oRangeList = new RangeList();
    double nextRangeMinimum = 0;
    foreach ( QualitativeRange oRange in _ViewModel.BulletGraphRanges )
        RadialRange oRadialRange = new RadialRange();
        oRadialRange.Min = nextRangeMinimum;
        oRadialRange.Max = nextRangeMinimum = oRange.Value;
        oRadialRange.BorderBrush = oRange.Brush;
        oRangeList.Add( oRadialRange );

    The problem is that RangeList has no .Add member.  How do I add ranges to a RangeList?

    Nevermind.  Duh.  It's oRangeList.Items.Add
    All better now.

  2. Answer
    Andrey avatar
    1681 posts

    Posted 13 Oct 2011 Link to this post

    Hello Dan,

    You can add ranges to the radial scale using the following code:

    private void SetupRange(double newMin, double newMax, Color color)
        RadialRange range = new RadialRange()
            Min = newMin,
            Max = newMax,
            StartWidth = 0.1,
            EndWidth = 0.1,
            Background = new SolidColorBrush(color)

    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft R3 2016 release webinar banner
Back to Top