Seems xamWebChart can have horizontal/vertical only crosshair, and can have more than one. Does xamDataChart has similar feature? I need at least 2 vertical crosshairline on the live data chart and be able to calculate the delta difference for the values on the line charts?
Thanks!
Joan
Hello Joan,
Thank you for your post. I have been looking into the behavior that you have described and I could not managed to reproduce it. After researching how you can get the ContentPresenter after the XamDataChart is loaded, I can suggest modifying the CustomRangeCrossHair class, by adding the _container to the XamDataChart, in the LayoutUpdated event of the XamDataChart. I have modified the sample application that I have provided you with in order to demonstrates how you can implement this approach.
Please let me know if this modification fixes the issue tah you are having, if not would you please provided me with a sample application that demonstrates the issue, in order to be able to research how this behavior can be avoided?
Looking forward to hearing from you.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thanks for the example! It helps me a lot. But in my code, the code below:
_owner.Dispatcher.BeginInvoke(new Action(() =>
{ DepencyObject contentPresenter = Utilities.GetDescendantFromName(_owner, "ContentPresenter"); ...
The contentPresenter is null. Seems this attach is invoked too early. how can I postpone this action until the xamDataChart is fully constructed?
Thank you for your post. I have been looking into the functionality that you have described and if I understand correctly, you wish to have two vertical cross hairs and to be able to get the range between the start and end crosshair. If this is correct, I have created a sample application for you, that demonstrates how you can create custom range horizontal and vertical crosshairs that allows you to set the range of the crosshairs and get the values of the start and the end of the range, while moving the mouse over the chart.
Please let me know if you need any further assistance on the matter.