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

To Set Metro theme for Gauge

3 Answers 57 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Ramya
Top achievements
Rank 1
Ramya asked on 20 Sep 2011, 01:04 PM
Hi,
I want to set the Metro theme for my gauge control. How do i set it?

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 23 Sep 2011, 11:29 AM
Hello Ramya,

You can set theme on the gauge using the StyleManager.Theme attachable property. Also note that using  the theme requires the reference to the appropriate assembly (Telerik.Windows.Themes.Metro.dll) in your project. The sample code is below.
<UserControl x:Class="GaugeTest.Gauge"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadGauge telerik:StyleManager.Theme="Metro">
            <telerik:RadialGauge>
                <telerik:RadialScale>
                    <telerik:Needle Value="75" />
                </telerik:RadialScale>
            </telerik:RadialGauge>
        </telerik:RadGauge>
    </Grid>
</UserControl>

For more information please take a look for the following documentation topic:
http://www.telerik.com/help/silverlight/common-styling-apperance-setting-theme.html

Greetings,
Andrey Murzov
the Telerik team

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

0
Ramya
Top achievements
Rank 1
answered on 24 Sep 2011, 10:44 AM
Hi,
I have tried this but the theme doesnt get applied. what can be the reason?
0
Andrey
Telerik team
answered on 28 Sep 2011, 02:17 PM
Hi Ramya,

It is very complicated and it is hard to reproduce the problem without your solution. Could you, please, provide us with a small sample solution which reproduces the problem with the Metro theme?

Kind regards,
Andrey Murzov
the Telerik team

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

Tags
Gauge
Asked by
Ramya
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Ramya
Top achievements
Rank 1
Share this question
or