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

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.