Hi,
How to add a tooltip on vertical crosshair line ? Attaching snap for reference.
Thanks
Hello Rakesh,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I used the ItemToolTipLayer and CrosshairLayer in order to place both a crosshair and tooltip. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
I have created a sample project for you with the functionality you want. Basically I used behaviors in order to achieve this. Please let me know if you have further questions on this matter.
Thank you very much, its perfect...
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
By using Canvas' SetTop, SetLeft, SetBottom and SetRight methods you can change the position of the ToolTip.
Hi Stefan.
Thanks for your reply.
One last question, is it possible to show this custom tooltip on HorizontalAxisLabelPanel.
Thanks & Regards
If you comment these two lines of code:
Canvas.SetLeft(_toolTip, crossPoint.X - _toolTip.ActualWidth / 2); Canvas.SetTop(_toolTip, 0);
from the Refresh method of the CustomToolTip class, the tooltip won't move along with the vertical crosshair. You can still use them in order to move the tooltip where you want.
Is it possible to placed this custom tooltip behaviour on x-axis ?