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

Radial State Indicator

1 Answer 79 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
eSightEnergy
Top achievements
Rank 1
eSightEnergy asked on 10 Mar 2010, 05:33 PM

Hello, 

Im having trouble setting the status of a State Indicator from the code behind, and I looked at one of your examples on the demo website using some sort of binding. Do you have any other example or any way of setting this from the code  behind as I am struggling to see how this is working.

The code snippet I was following from the demo website (Gauge/Customisation/RadialScaleIndicators) is:

<gauge:RadialRange Name="GoodState" Min="0" Max="80" StartWidth="0"  
    EndWidth="0" BorderBrush="Transparent">  
    <gauge:RadialRange.Background>  
        <RadialGradientBrush>  
            <GradientStop Offset="0" Color="#FFFFCD00" />  
            <GradientStop Offset="1" Color="#FFFF8200" />  
        </RadialGradientBrush>  
    </gauge:RadialRange.Background>  
</gauge:RadialRange>  
<gauge:RadialRange Name="BadState" Min="80" Max="100" StartWidth="0"  
    EndWidth="0" BorderBrush="Transparent">  
    <gauge:RadialRange.Background>  
    <RadialGradientBrush>  
        <GradientStop Offset="0" Color="#FFFF5000" />  
        <GradientStop Offset="1" Color="#FFFF1400" />  
    </RadialGradientBrush>  
    </gauge:RadialRange.Background>  
</gauge:RadialRange>  
</gauge:RangeList>  
<gauge:IndicatorList>  
    <gauge:StateIndicator Name="stateIndicator" Left="0.45" Top="0.25"  
        RelativeWidth="0.2" RelativeHeight="0.2">  
            <gauge:StateIndicator.Filter>  
                <sys:String>GoodState</sys:String>  
                <sys:String>BadState</sys:String>  
            </gauge:StateIndicator.Filter>  
        </gauge:StateIndicator> 

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 11 Mar 2010, 02:15 PM
Hi Stephen,

I have attached a solution that demonstrates using of state indicator via its Value property. Look at code of the timer_Tick method.

Kind regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Gauge
Asked by
eSightEnergy
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or