UseRangeColor="True" works for first range only?

2 posts, 0 answers
  1. Zero Gravity Chimp
    Zero Gravity Chimp avatar
    40 posts
    Member since:
    Dec 2009

    Posted 16 Dec 2009 Link to this post

    Hello,

    I'm currently implementing a radGauge using Telerik's internal build version (2009_3_1211_Dev). I needed to use this version because of the chart performance issues.

    Now I am trying to set the "UseRangeColor" as follows:

            <control:RadGauge x:Name="radGauge" Width="300" Height="300"
                <gauge:RadialGauge> 
                    <gauge:RadialScale Min="0" Max="1000" Radius="0.9" StartWidth="0.1" EndWidth="0.15" Background="#44DDCCFF"
                         
                        <gauge:IndicatorList> 
                            <gauge:Needle x:Name="needle" /> 
                        </gauge:IndicatorList> 
                        <gauge:RangeList> 
                            <gauge:RadialRange 
                              Name="Green" 
                              Min="0" 
                              Max="333" 
                              StartWidth="0.025" 
                              EndWidth="0.03" 
                              Location="Inside" 
                              Background="CadetBlue" 
                              BorderBrush="CadetBlue" 
                              LabelForeground="MediumSpringGreen"/> 
                        </gauge:RangeList> 
                        <gauge:RangeList> 
                            <gauge:RadialRange 
                              Name="Yellow" 
                              Min="333" 
                              Max="666" 
                              StartWidth="0.03" 
                              EndWidth="0.03" 
                              Location="Inside" 
                              Background="PeachPuff" 
                              BorderBrush="PeachPuff" 
                              LabelForeground="YellowGreen"/> 
                        </gauge:RangeList> 
                        <gauge:RangeList> 
                            <gauge:RadialRange 
                              Name="Red" 
                              Min="666" 
                              Max="1000" 
                              StartWidth="0.03" 
                              EndWidth="0.035" 
                              Location="Inside" 
                              Background="Tomato" 
                              BorderBrush="Tomato" 
                              LabelForeground="Crimson"/> 
                        </gauge:RangeList> 
                        <gauge:RadialScale.Label> 
                            <gauge:LabelProperties Location="Inside" UseRangeColor="True"/> 
                        </gauge:RadialScale.Label> 
                    </gauge:RadialScale> 
                     
                </gauge:RadialGauge> 
            </control:RadGauge> 

    This all works great except I can't understand from the help how the UseRangeColor should be better implemented? This sets the first range's colour automatically. placing the radialscale.label part before the rangelists part,  or pasting it 3 times, do not make a difference. I am attaching a screenshot of my result.



    Please advise!

    Regards,

    Paul
  2. Zero Gravity Chimp
    Zero Gravity Chimp avatar
    40 posts
    Member since:
    Dec 2009

    Posted 20 Dec 2009 Link to this post

    I have found the answer to this question,

    You have to place all the RadialRanges in one RangeList for it to work!


  3. DevCraft banner
Back to Top