Pre loader

ZoomModifier in modifier group

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies