I assume you have a control.
private void jprad_MouseEnter(object sender, MouseEventArgs e)
{
ToolTip sample = new ToolTip();
sample.Content = "JAPAN";
jp_rad.Content = sample; //Japan Radio Button
}
we have added our Tooltip object in MouseEnter of a radiobutton named jprad which has a value of "Japan"
by assigning Content property of any control,you can show tooltip in Silverlight dynamically.
Cheers,
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Jagadish JadhavPosted Mar 12, 2013, 11:49 AM
I found many developers are looking for multi line tool tip using code behind page in silver-light. So my dear friends please find following code for your reference. ToolTip TT = new ToolTip() { Content = new TextBlock() { Text = (stkPanel.DataContext as CCIFormField).ToolTipClonedFrom, TextWrapping = TextWrapping.Wrap, MaxWidth = 300, Foreground = new SolidColorBrush(Colors.White) }, IsOpen = true }; ToolTipService.SetToolTip(stkPanel, TT); Yahoo..!