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

Set the foreground in Radial Gauge

2 Answers 58 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Boots
Top achievements
Rank 1
Boots asked on 26 Sep 2011, 04:58 PM
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

2 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 29 Sep 2011, 08:25 AM
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 >>

0
Boots
Top achievements
Rank 1
answered on 29 Sep 2011, 02:02 PM
Hi Andrey,

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

Thanks again,
~Boots
Tags
Gauge
Asked by
Boots
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Boots
Top achievements
Rank 1
Share this question
or