Needle Tooltip

2 posts, 0 answers
  1. Alberto
    Alberto avatar
    26 posts
    Member since:
    Nov 2012

    Posted 23 Sep 2013 Link to this post

    I'm trying to show a tooltip in the needle in order to show the selected value.

    I have this code in the xaml file:

    <telerik:RadRadialGauge Name="RadialGaugeDemo" HorizontalAlignment="Left" Margin="961,30,0,0" Grid.Row="1" VerticalAlignment="Top" Height="255" Width="274">
                <telerik:RadialScale Name="scale"
                                         LabelRotationMode="None"
                                         IsInteractive="True"   
                                         MajorTickOffset="-0.015*"
                                         MiddleTickOffset="-0.015*"
                                         MinorTickOffset="-0.015*" Min="0" Max="120">
                     
                    <telerik:RadialScale.Indicators>
                         
                        <telerik:Needle Name="needle" Value="50"/>
                        <telerik:Pinpoint />
                    </telerik:RadialScale.Indicators>
                </telerik:RadialScale>
            </telerik:RadRadialGauge>

    And I wanted to add the tooltip format in the code behind file:

    needle.TooltipFormat = "{0:F2}";

    But when I run the program, it only shows a blank square, as you can see in the image that I have attached.
    I think that I am missing something.

    I saw this Page and i tried this code:

    <telerik:Needle x:Name="needle"
     IsAnimated="True"
     Value="{Binding Value}" TooltipFormat="No: {0}"/>

    But it doesn't work either.

    Regards,

    Alberto Martinez




  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 27 Sep 2013 Link to this post

    Hi Alberto,

    The post you reference to is for very old version of the gauge control.
    You can find example of the tooltip usage here:

    http://demos.telerik.com/silverlight/#Gauge/Customization/Tooltips

    Regards,
    Andrey Murzov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top