3 Answers, 1 is accepted
0
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.
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
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"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
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?
I have tried this but the theme doesnt get applied. what can be the reason?
0
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
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 >>