2

Hi I want to add zoom and scroll with code behind to SCICHART is this possible? I tried xaml but It did not work. My manager wants it with code behind.

Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178
jopa1351
  • 21
  • 3

1 Answers1

1

Yes this should be easy, for each modifier in SciChart WPF, you can add it in code behind like this:

var sciChartSurface = new SciChartSurface();
sciChartSurface.XAxis = new NumeriAxis();
sciChartSurface.YAxis = new NumeriAxis();

sciChartSurface.ChartModifiers.Add(new ZoomPanModifier());
sciChartSurface.ChartModifiers.Add(new MouseWheelZoomModifier());
sciChartSurface.ChartModifiers.Add(new ZoomExtentsModifier());

See a full list of the modifiers available in SciChart WPF here

Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178