Gague styles and labels

2 posts, 1 answers
  1. Miha Markic
    Miha Markic avatar
    48 posts
    Member since:
    Jan 2006

    Posted 27 Apr 2010 Link to this post

    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.
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 28 Apr 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top