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

Simple gauge with 2011 Q2

1 Answer 81 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
christian
Top achievements
Rank 1
christian asked on 22 Feb 2012, 09:59 AM

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

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 24 Feb 2012, 02:29 PM
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 >>
Tags
Gauges
Asked by
christian
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or