Pre loader

How to make multiple Chart Modifiers active at the same time

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

Andrew,

I had a question about having multiple Chart Modifiers active at the same time. I’m trying have 6 chart modifiers enabled at all times. Its seems like some of them don’t work. Here is my code

<sciChart:SciChartSurface.ChartModifier>
<sciChart:ModifierGroup >
<sciChart:XAxisDragModifier ClipModeX="None" />
<sciChart:YAxisDragModifier IsEnabled="True" />
<sciChart:ZoomPanModifier IsEnabled="True" />
<sciChart:CursorModifier IsEnabled="True" ShowAxisLabels="False" ShowTooltip="True" />
<sciChart:MouseWheelZoomModifier />
<sciChart:ZoomExtentsModifier ExecuteOn="MouseDoubleClick" />
</sciChart:ModifierGroup>
</sciChart:SciChartSurface.ChartModifier>

The YAxisDragModifier and the ZoomPanModifier dont’ seem to work. Are some of the chart modifiers mutually exclusive or is there a “ClipModeX” type setting that I need to turn on for these to work.Thanks for all your help, I appreciate it.

Deepak

  • You must to post comments
0
0

Hi Deepak,

Try setting ReceiveHandledEvents=True on those modifiers. We prevent the mouse-events from cascading down to subsequent modifiers (just like e.Handled in WPF). This allows you to have both ZoomPanModifier and RubberBandXyZoomModifier on different mouse-buttons and not have both react to a single mouse-event.

Hope this helps,

Andrew

  • 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