Hi guys,
Check out the following XAML
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.
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.