CursorCoordinateGraph - Moving text labels near to intersection point

Apr 28, 2010 at 6:32 AM

Hi All,

Is there any way to move Text labels(Text blocks) near to intersection of vertical line and horizontal line.

Regards

Ravi. Battula 

 

Editor
Apr 28, 2010 at 7:19 AM

Hi Ravi,

Can you please give a picture of what you want?

Best regards,

Mikhail.

Apr 28, 2010 at 7:32 AM

Hi Mikhail,

I need to move Horizontal text block and vertical text block neat to the intersection of horizontal line and vertical line.
If I move mouse the text blocks should always near to the intersection of verical line and horizontal line.

http://cid-996b1960e19fab56.skydrive.live.com/self.aspx/Trend%20Snaps/CursorCoordinate.jpg?ccr=4214

Regards

Ravi.

Editor
Apr 28, 2010 at 8:12 AM

1) I could not watch your picture, because it was unavailable.

2) You can easily create such modification of CursorCoordinateGraph, changing its source. Simply change positions of those textblocks.

Best regards,

Mikhail,

Apr 28, 2010 at 9:44 AM

Thanks Mikhail,

I did it. I used

 Canvas.SetTop(vertGrid, mousePos.Y - height - blockShift.Y);
 Canvas.SetLeft(vertGrid, mousePos.X - vertTextBlock.Text.Length);

these properties to change the posions of text blocks and this is working.

Thanks and Regards

Ravi

Editor
Apr 28, 2010 at 9:48 AM

Well, I'm glad that you've done it :)

Mikhail.