This is a migrated thread and some comments may be shown as answers.

Changing the Tooltip Position

1 Answer 76 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 18 Aug 2009, 03:45 PM
Is there a way to move the position of a tooltip form the default?  Currently, it is displaying bellow the mouse and that is causing it to go beyond the browser window and cuts it off.  I would like it to show above and to the right of the mouse position.  Thanks.

1 Answer, 1 is accepted

Sort by
0
Hector
Top achievements
Rank 1
answered on 18 Aug 2009, 04:10 PM
I figured it out.  Don't know if this is the right way, but it works marvelous!

            tooltip.RenderTransform = new TransformGroup();  
            TransformGroup tg = new TransformGroup();  
            TranslateTransform translate = new TranslateTransform();  
            translate.X = 0;  
            translate.Y = -205;  
            tg.Children.Add(translate);  
            tooltip.RenderTransform = tg; 
Tags
Chart
Asked by
Hector
Top achievements
Rank 1
Answers by
Hector
Top achievements
Rank 1
Share this question
or