Simple gauge with 2011 Q2

2 posts, 0 answers
  1. christian
    christian avatar
    1 posts
    Member since:
    Jan 2011

    Posted 22 Feb 2012 Link to this post

    Hi everyone,

     

    I’m using the 2011 Q2 WPF package.

    Is it possible to remove the background to create a very simple style.
    Like the styles from the new Telerik gauges?
     

    Thanks!

     

    greetings,

    Christian

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 24 Feb 2012 Link to this post

    Hi Christian,

    You can use the Metro theme for the old gauge control.
    The sample code is below.
    <Window x:Class="OldGaugeControl.MainWindow"
            Title="MainWindow" Height="350" Width="525">
        <Window.Resources>
            <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml" />
        </Window.Resources>
        <Grid Name="layoutRoot" Height="348" Width="500">
            <telerik:RadGauge telerik:StyleManager.Theme="Metro">
                <telerik:RadialGauge Style="{StaticResource MetroRadialGaugeHalfCircleNStyle}">
                    <telerik:RadialScale Style="{StaticResource MetroRadialScaleHalfCircleNStyle}">
                        <telerik:IndicatorList>
                            <telerik:Needle Value="65" />
                        </telerik:IndicatorList>
                    </telerik:RadialScale>
                </telerik:RadialGauge>
            </telerik:RadGauge>
        </Grid>
    </Window>

    All the best,
    Andrey Murzov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top