Set the foreground in Radial Gauge

3 posts, 1 answers
  1. Boots
    Boots avatar
    81 posts
    Member since:
    Dec 2008

    Posted 26 Sep 2011 Link to this post

    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. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 29 Sep 2011 Link to this post

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

  3. DevCraft banner
  4. Boots
    Boots avatar
    81 posts
    Member since:
    Dec 2008

    Posted 29 Sep 2011 Link to this post

    Hi Andrey,

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

    Thanks again,
    ~Boots
Back to Top