ComponentOne Gauges for WPF and Silverlight
About C1Gauges / Using C1RadialGauge / C1RadialGauge Decorators / C1RadialGauge Decorators Value Binding
In This Topic
    C1RadialGauge Decorators Value Binding
    In This Topic

    The ranges are not restricted to static values. You can use the C1GaugeRange.ValueBinding property to bind the range's starting or ending positions to the current value being displayed by the gauge. For example, the code below would cause the red range to appear only when the speed exceeded 80 miles per hour:

    <!-- Add three colored ranges -->
    
    <c1:C1GaugeRange From="80" ValueBinding="To" Location="0.7" Background="Red" />
    
    <c1:C1GaugeRange From="50" To="80" Location="0.7" Fill="Yellow" />
    
    <c1:C1GaugeRange From="0" To="50" Location="0.7" Fill="Green" />
    

    The diagrams below show the effect of this change as the Value property changes:

     


    Value = 55


    Value = 90


    Value = 100