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

Radguage tooltip

1 Answer 80 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
scorp
Top achievements
Rank 1
scorp asked on 13 Jan 2011, 07:34 PM
I have the below code in my silverlight app. I need to be able to show a tooltip on the whole body of radguage and not just the needle. How can I go about it.
Thanks.

<
telerik:RadGauge x:Name="radGauge">
                   <telerik:RadialGauge x:Name="radialGauge" Style="{StaticResource RadialGaugeHalfCircleNStyle}">
                       <telerik:RadialScale x:Name="radialScale" Style="{StaticResource RadialScaleHalfCircleNStyle}">
                               <telerik:IndicatorList>
                                   <telerik:Needle x:Name="needle"
                                               IsAnimated="True"
                                               Value="{Binding Value}" TooltipFormat="No: {0}"/>
                           </telerik:IndicatorList>
                       </telerik:RadialScale>
                       </telerik:RadialGauge>
                   </telerik:RadGauge>



1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 18 Jan 2011, 06:04 PM
Hi scorp,

I think you can use standard ToolTipService.ToolTip property for the gauge also using binding to the Value property with string format.
The sample XAML code is below.
<telerik:RadGauge x:Name="radGauge">
    <telerik:RadialGauge x:Name="radialGauge" Style="{StaticResource RadialGaugeHalfCircleNStyle}">
        <ToolTipService.ToolTip>
            <TextBlock Text="{Binding Value, StringFormat='No: {0}'}" />
        </ToolTipService.ToolTip>
        <telerik:RadialScale x:Name="radialScale" Style="{StaticResource RadialScaleHalfCircleNStyle}">
            <telerik:IndicatorList>
                <telerik:Needle x:Name="needle"
                                IsAnimated="True"
                                Value="{Binding Value}" TooltipFormat="No: {0}"/>
            </telerik:IndicatorList>
        </telerik:RadialScale>
    </telerik:RadialGauge>
</telerik:RadGauge>

Best wishes,
Andrey Murzov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Gauge
Asked by
scorp
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or