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> |