How can I synchronise two or more Rollover Modifiers from different charts? If I move the mouse I would like to see a Rollover Modifier also on other charts.
- StephanRichter asked 14 years ago
- You must login to post comments
Hello Stephan,
Thanks for your query! This is possible by using an attached property called the MouseManager. This is used in the on the examples suite.
In the code-behind of SciTraderView.xaml you will see something like this:
<s:SciChartSurface x:Name="chart0">
...
<s:SciChartSurface.ChartModifier>
<s:RolloverModifier
s:MouseManager.MouseEventGroup="MySharedMouseGroup"/>
</s:SciChartSurface.ChartModifier>
</s:SciChartSurface>
<s:SciChartSurface x:Name="chart1">
...
<s:SciChartSurface.ChartModifier>
<s:RolloverModifier
s:MouseManager.MouseEventGroup="MySharedMouseGroup"/>
</s:SciChartSurface.ChartModifier>
</s:SciChartSurface>
The MouseManager.MouseEventGroup attached property will synchronize mouse events across charts. If one chart raises a mouse move event, the other will get it as a secondary event. This way rollovers can be synchronized across charts.
Can you give that a go and let me know if it works?
- Andrew Burnett-Thompson answered 14 years ago
- last edited 1 year ago
- You must login to post comments
Please login first to submit.

