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

Progress inside Gauge

1 Answer 15 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Edo Cof
Top achievements
Rank 1
Edo Cof asked on 26 Apr 2010, 06:49 PM
How can i achieve that i will see Value in percent inside RadGauge?
Just like in demo, that textblock who's showing loading... 30%, but not seperately but inside RadGauge?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 29 Apr 2010, 08:00 AM
Hi Matjaz Cof,

You can simple put text block over the RadGauge control using Silverlight Layout system. For example:

<Grid x:Name="LayoutRoot">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="50*" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="70*" />
        <RowDefinition Height="30*" />
    </Grid.RowDefinitions>
    <control:RadGauge Grid.RowSpan="2">
        <gauges:RadialGauge>
            <gauges:RadialScale>
                <gauges:IndicatorList>
                    <gauges:Needle x:Name="Needle" Value="40" />
                </gauges:IndicatorList>
            </gauges:RadialScale>
        </gauges:RadialGauge>
    </control:RadGauge>
  
    <StackPanel Grid.Row="1" HorizontalAlignment="Center" Orientation="Horizontal">
        <TextBlock FontSize="14" Foreground="White" Text="{Binding ElementName=Needle, Path=Value}" />
        <TextBlock FontSize="14" Foreground="White" Text="%" />
    </StackPanel>
  
</Grid>


Kind 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
Gauge
Asked by
Edo Cof
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or