how to make tooltip move along with mouse?

Posted by George2 on Stack Overflow See other posts from Stack Overflow or by George2
Published on 2009-09-06T07:30:54Z Indexed on 2010/03/23 22:03 UTC
Read the original article Hit count: 349

Filed under:
|
|
|
|

Hello everyone,

I am using Silverlight 3 + VSTS 2008. I have a image (Multiscale image control) and I place tooltip on this image. The function of Tooltip works fine. Since the image is big (about 500 * 500 size), and since end user could move mouse on the picture, and I want to display tooltip position along with the mouse (i.e. when mouse moves, I want to tooltip move along with the mouse). Currently, the tooltip displays at a fixed position.

Here is my current XAML code, any ideas how to solve this issue?

      <MultiScaleImage x:Name="msi" Height="500" Width="500">
            <ToolTipService.ToolTip>
                <ToolTip Content="Here is a tool tip" Name="DeepZoomToolTip"></ToolTip>
            </ToolTipService.ToolTip>
        </MultiScaleImage>

thanks in advance, George

© Stack Overflow or respective owner

Related posts about vsts2008

Related posts about c#