In our application we have 2 separate charts which are hosted in 2 different usercontrols displayed side by side.
What is the way to syhnonise for instance the zoom on this 2 chart ?
I have done that when chart are hosted in same control but have no idea how to do that in such case of 2 different control hosted
Do I need to create an attached property on second chart and pass something from chart 1 to chart 2 ?
Thanks for help
I would suggest to bind two VisibleRanges of the X axes of both charts to the same property in a ViewModel. We have an example where there are two surfaces which have their ranges bound to a property called SharedVisibleRange here:
Please refer to its code as an example of how this can be done.
Hope this helps,
Please login first to submit.