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

Needle Tooltip

1 Answer 95 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Alberto
Top achievements
Rank 1
Alberto asked on 23 Sep 2013, 09:28 PM
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




1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 Sep 2013, 12:32 PM
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 >>
Tags
Gauges
Asked by
Alberto
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or