Click here to Skip to main content
12,068,520 members (67,181 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Silverlight
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 5-Feb-10 1:45am
Edited 18-Aug-10 2:18am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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. Thumbs Up | :thumbsup:
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web03 | 2.8.160208.1 | Last Updated 18 Aug 2010
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100