Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Gauges > RadialBar StartValue

Answered RadialBar StartValue

Feed from this thread
  • Posted on Jan 26, 2011 (permalink)

    On my Gauage I have a Needel, this needle has a certain value. now I want the Radial bar to start at this value and then go further.
    Is this possible? Or do I need to use the radial range?

    Reply

  • Answer Andrey Andrey admin's avatar

    Posted on Jan 28, 2011 (permalink)

    Hi Kevin Hendriks,

    It can be implemented with radial bar, but you still should use ranges. The radial bar can use background specified in ranges. So you can setup 2 ranges: 1 with transparent indicator's background and 1 with non- transparent indicator's background, and force radial range use range background in the ProportionalBrush mode. For example:

    <telerik:RadialGauge>
        <telerik:RadialScale>
            <telerik:RangeList>
                <telerik:RangeBase Name="invisible"
                           Min="0" Max="10"
                           IndicatorBackground="Transparent" />
                <telerik:RangeBase Name="visible"
                           Min="10" Max="100"
                           IndicatorBackground="Green" />
            </telerik:RangeList>
            <telerik:IndicatorList>
                <telerik:RadialBar Name="bar" 
                           UseRangeColor="True" 
                           RangeColorMode="ProportionalBrush"
                           Value="20" />
                <telerik:Needle Name="needle" Value="10" ValueChanged="SetupRanges" />
            </telerik:IndicatorList>
        </telerik:RadialScale>
    </telerik:RadialGauge>

    private void SetupRanges(object sender, Windows.Controls.Gauges.RoutedPropertyChangedEventArgs<double> e)
    {
        if (this.needle != null)
        {
            this.invisible.Max = needle.Value;
            this.visible.Min = needle.Value;
        }
    }


    All the best,
    Andrey Murzov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Gauges > RadialBar StartValue
Related resources for "RadialBar StartValue"

WPF Gauge Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]