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

Gague styles and labels

1 Answer 75 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Miha Markic
Top achievements
Rank 1
Miha Markic asked on 27 Apr 2010, 03:46 PM
Hi guys,

Check out the following XAML
<Window x:Class="WpfApplication28.MainWindow" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        Title="MainWindow" Height="350" Width="525" Background="Gray"
    <Grid> 
        <Grid.Resources> 
            <ControlTemplate x:Key="Tubo"
                <telerik:RadialGauge Width="150" Height="150"
                    <telerik:RadialScale Name="radialScale" StartAngle="135" SweepAngle="270" Radius=".95" 
                            MajorTicks="5" MinorTicks="1" MiddleTicks="1" LabelRotationMode="None"
                        <telerik:RadialScale.Label> 
                            <telerik:LabelProperties Location="Inside" FontSize="20" Foreground="Red" /> 
                        </telerik:RadialScale.Label> 
                    </telerik:RadialScale> 
                </telerik:RadialGauge> 
            </ControlTemplate> 
            <Style TargetType="{x:Type Control}"
                <Setter Property="Template" Value="{StaticResource Tubo}"
                </Setter> 
            </Style> 
        </Grid.Resources> 
        <Grid.RowDefinitions> 
            <RowDefinition /> 
            <RowDefinition /> 
        </Grid.RowDefinitions> 
        <Control /> 
        <telerik:RadialGauge Grid.Row="1"
            <telerik:RadialScale Name="radialScale" StartAngle="135" SweepAngle="270" Radius=".95" 
                            MajorTicks="5" MinorTicks="1" MiddleTicks="1" LabelRotationMode="None"
                <telerik:RadialScale.Label> 
                    <telerik:LabelProperties Location="Inside" FontSize="20" Foreground="Red" /> 
                </telerik:RadialScale.Label> 
            </telerik:RadialScale> 
        </telerik:RadialGauge> 
    </Grid> 
</Window> 
 

It shows two gauges, first one defined through a controltemplate embedded in style while the other directly. The former doesn't apply Label properties at all nor MajorTicks (not shown) but it does apply Needle if one is specified.

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 28 Apr 2010, 01:39 PM
Hi Miha Markic,

Thank you for your feedback. We are already aware about the problem. It will be fixed in the nearest future. The necessary changes will be included with the fix for the following item: http://www.telerik.com/support/pits.aspx#/public/silverlight/1039

Regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Gauges
Asked by
Miha Markic
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or