I’m evaluating SciChart and I’m trying to change the SciChart Trader to allow panning by dragging the mouse while the XY cursor is visible.
I’ve changed the zoom modifier to be like the “Pan On Mouse Drag” example, but it doesn’t work
thanks,
Kurt
- tecman234 asked 11 years ago
- You must login to post comments
Hi Kurt,
Thank you for inquiring us. There is ReceiveHandledEvents property in ChartModifierBase (the class all modifiers are inherited from), you need to set it to “True” for all modifiers you want to work together. This happens because all modifiers handle mouse events internally. Please, take a look (from our Synchronize mouse across charts example):
<s:SciChartSurface.ChartModifier>
<s:ModifierGroup s:MouseManager.MouseEventGroup="myCustomGroup">
<s:ZoomPanModifier IsEnabled="{Binding PanEnabled, Mode=TwoWay}"
ReceiveHandledEvents="True"
Tag="SecondYAxis" />
<s:MouseWheelZoomModifier IsEnabled="{Binding MouseWheelEnabled, Mode=TwoWay}" Tag="SecondYAxis"/>
<s:CursorModifier IsEnabled="{Binding CursorEnabled, Mode=TwoWay}"
ReceiveHandledEvents="True"
Tag="SecondYAxis" />
….
</s:ModifierGroup>
</s:SciChartSurface.ChartModifier>
Please, feel free to ask if you have any questions!
Best regards,
Yuriy
- Yuriy Zadereckiy answered 11 years ago
- You must login to post comments
Please login first to submit.