To Set Metro theme for Gauge

4 posts, 0 answers
  1. Ramya
    Ramya avatar
    27 posts
    Member since:
    Jan 2011

    Posted 20 Sep 2011 Link to this post

    Hi,
    I want to set the Metro theme for my gauge control. How do i set it?
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Sep 2011 Link to this post

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

  3. DevCraft banner
  4. Ramya
    Ramya avatar
    27 posts
    Member since:
    Jan 2011

    Posted 24 Sep 2011 Link to this post

    Hi,
    I have tried this but the theme doesnt get applied. what can be the reason?
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 28 Sep 2011 Link to this post

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

Back to Top