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

How to change Tooltip in Runtime?

2 Answers 31 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Di
Top achievements
Rank 1
Di asked on 05 Jul 2013, 06:25 PM
I have the RadMaskedNumericInput below:
<telerik:RadMaskedNumericInput Name="txtC" Value="{x:Null}" IsClearButtonVisible="False"Mask="###" Placeholder=" " HorizontalContentAlignment="Right" HorizontalAlignment="Left" VerticalContentAlignment="Center" ToolTipService.ToolTip="cm" ValueChanged="txtC_ValueChanged" />

and I need to know how to change its tooltip in runtime. I know it doesn't exists, but would be something like this:
txtC.Tooltip = "cm (AAAAAAAA)";

Di.

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 08 Jul 2013, 01:42 PM
Hi Di,

Silverlight offers a class called "ToolTipService" which can be used to display tooltips for Silverlight controls. This class can be attached to most of the UI elements in Silverlight to display tooltips. Please check the following C# code. Also check this article on Display Tooltip for Silverlight Controls.

C#:
ToolTipService.SetToolTip(MyButton, "This is new tooltip");

Thanks,
Princy.
0
Di
Top achievements
Rank 1
answered on 08 Jul 2013, 02:08 PM
Thanks Princy, that's exactly what I needed.
Di
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Di
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Di
Top achievements
Rank 1
Share this question
or