How to make a tooltip appear immediately in Silverlight?

Posted by Edward Tanguay on Stack Overflow See other posts from Stack Overflow or by Edward Tanguay
Published on 2010-03-19T15:39:55Z Indexed on 2010/03/19 15:41 UTC
Read the original article Hit count: 241

In WPF, I get a tooltip to appear immediately like this:

TextBlock tb = new TextBlock();
tb.Text = name;
ToolTip tt = new ToolTip();
tt.Content = "This is some info on " + name + ".";
tb.ToolTip = tt;
tt.Cursor = Cursors.Help;
ToolTipService.SetInitialShowDelay(tb, 0);

This makes the user experience better since if the user wants to look at the tooltips of five items on the page, he doesn't have to wait that long second for each one.

But since Silverlight does not have SetInitialShowDelay, what is a workaround to make the tooltip appear immediately?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about wpf