Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Gauge > Set the foreground in Radial Gauge

Answered Set the foreground in Radial Gauge

Feed from this thread
  • Boots avatar

    Posted on Sep 26, 2011 (permalink)

    Hello,

    I'm looking to change the foreground of the Radial Gauge but when i set Foreground="Blue" nothing seems to happen. So i thought the next logical step was to go into blend and edit the template. However this is all i get...

    <ControlTemplate x:Key="RadGaugeControlTemplate1" TargetType="telerik:RadGauge"/>

    I'd also like to edit the template to look similar to the Metro theme.
    Any ideas what I'm doing wrong?

    Thanks Much,
    ~Boots

    Reply

  • Answer Andrey Andrey admin's avatar

    Posted on Sep 29, 2011 (permalink)

    Hi Boots,

    The RadGauge control itself is just a container for real gauges (radial or linear). The RadialGauge and LinearGauge are containers for the scale objects. The tick mark labels belong to the scale objects. So any changes made for Foreground property of the RadGauge, RadialGauge or LinearGauge objects doesn't affect foreground of the tick mark labels. You can change Foreground of the tick mark labels as following:

    <telerik:RadGauge x:Name="radGauge">
        <telerik:RadialGauge>
            <telerik:RadialScale x:Name="linearScale">
                <telerik:RadialScale.Label>
                    <telerik:LabelProperties Foreground="Red" />
                </telerik:RadialScale.Label>
                <telerik:IndicatorList>
                    <telerik:Needle />
                </telerik:IndicatorList>
            </telerik:RadialScale>
        </telerik:RadialGauge>
    </telerik:RadGauge>
     
    Unfortunately it is not possible to get templates for the current version of the RadGauge control in Blend.

    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Boots avatar

    Posted on Sep 29, 2011 (permalink)

    Hi Andrey,

    Thanks for getting back to me. That's exactly what I was looking for.

    Thanks again,
    ~Boots

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Gauge > Set the foreground in Radial Gauge
Related resources for "Set the foreground in Radial Gauge"

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