Click here to Skip to main content
15,883,978 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,

Can anyone help me writing a custom tooltip according to my design? I need to create a Tooltip where I have a Link or Button inside the Tooltip. Designing is easy but the problem comes here on writing the event for button inside the tooltip. How can I make the tooltip stay there if I enter my mouse inside it so that I can click on the button inside the tooltip.

Is it possible in anyway? Please help me regarding the same asap. I am using Silverlight 3, Visual Studio 2008 SP1.
Posted
Updated 18-Aug-10 1:18am
v2

Thanks Pete for pointing out the same. I implemented it as mentioned by you & also want to tell it is working perfectly.

It my case, it required some more tweaks to get the data as I was using data template inside the list which has the tooltip.

Anyway I resolved it & last but not least thanks for your valuable help. :thumbsup:
 
Share this answer
 
The only way to really do this would be to display something that, in WPF, is called an adorner. Basically, you'd need to hook into the mouseover and display the adorner after a short period of time.

Now, adorners aren't natively supported by Silverlight, so you have to fake them. One way to do this is to create a collapsed container (such as a Grid), and set its location when you display the adorner.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900