This is a migrated thread and some comments may be shown as answers.

UseRangeColor="True" works for first range only?

1 Answer 30 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Zero Gravity Chimp
Top achievements
Rank 2
Zero Gravity Chimp asked on 17 Dec 2009, 03:46 AM
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

1 Answer, 1 is accepted

Sort by
0
Zero Gravity Chimp
Top achievements
Rank 2
answered on 21 Dec 2009, 12:42 AM
I have found the answer to this question,

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


Tags
Gauge
Asked by
Zero Gravity Chimp
Top achievements
Rank 2
Answers by
Zero Gravity Chimp
Top achievements
Rank 2
Share this question
or