SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.