Semi-circular gauge title

3 posts, 1 answers
  1. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 08 Sep 2009 Link to this post

    I've got a semi-circular gauge indicating a score, and would like the label 'Score' to be displayed within the gauge.  Can someone point me in the right direction as to how to achieve this, please?

    Thanks,

    James
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 08 Sep 2009 Link to this post

    Hi James,

    You can simply put a TextBlock over the gauge control. For example:

    <Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="80*" /> 
            <RowDefinition Height="20*" /> 
        </Grid.RowDefinitions> 
        <gauge:RadialGauge Grid.RowSpan="2" Width="400" Height="200"   
                   VerticalAlignment="Bottom" 
                   Style="{StaticResource RadialGaugeHalfCircleNStyle}">  
            <gauge:RadialScale Name="radialScale"   
                       Style="{StaticResource RadialScaleHalfCircleNStyle}" 
                       Min="0"   
                       Max="360">  
                <gauge:IndicatorList> 
                    <gauge:Needle Name="needle" Value="120" /> 
                </gauge:IndicatorList> 
            </gauge:RadialScale> 
        </gauge:RadialGauge> 
                  
        <TextBlock Grid.Row="2" Text="Score" HorizontalAlignment="Center" VerticalAlignment="Top" /> 
    </Grid> 


    Sincerely yours,
    Andrey Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 08 Sep 2009 Link to this post

    Hi Andrey,
    Ahah! That's just what I needed to know - thanks.

    James
Back to Top