Radguage tooltip

2 posts, 1 answers
  1. scorp
    scorp avatar
    59 posts
    Member since:
    Dec 2010

    Posted 13 Jan 2011 Link to this post

    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>



  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 18 Jan 2011 Link to this post

    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>>
  3. DevCraft banner
Back to Top