Reputation: 21
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.
Upvotes: 2
Views: 200
Reputation: 21521
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
Upvotes: 1