WPF Charting Documentation - SciChart WPF Charts SDK v5.x
Combining Multiple Zoom Modifiers

SciChart allows you to combine an unlimited number of ChartModifiers via the ModifierGroup type.

Combining Multiple Zoom Modifiers
Copy Code
<!-- where xmlns:s="http://schemas.abtsoftware.co.uk/scichart" -->
<s:SciChartSurface>
   <s:SciChartSurface.ChartModifier>
      <s:ModifierGroup>
         <s:RubberBandXyZoomModifier ExecuteOn="MouseLeftButton"/>
              <s:ZoomPanModifier ExecuteOn="MouseMiddleButton"/>
              <s:YAxisDragModifier/>
              <s:XAxisDragModifier/>
              <s:MouseWheelZoomModifier>
      </s:ModifierGroup>
   </s:SciChartSurface.ChartModifier>
</s:SciChartSurface>

NOTE: Certain modifiers will execute on the same mouse-button, for instance, the RubberBandXyZoomModifier and ZoomPanModifier both execute on Mouse Left-Button drag. To combine these two modifiers, either set the ExecuteOn property, or, set the IsEnabled property.

 

 


SCICHART ® is a Registered Trademark in the UK, US and EU. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!