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

Semi-circular gauge title

2 Answers 62 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 08 Sep 2009, 07:26 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 08 Sep 2009, 01:25 PM
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.
0
James
Top achievements
Rank 1
answered on 08 Sep 2009, 01:32 PM
Hi Andrey,
Ahah! That's just what I needed to know - thanks.

James
Tags
Gauge
Asked by
James
Top achievements
Rank 1
Answers by
Andrey
Telerik team
James
Top achievements
Rank 1
Share this question
or