SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

0
0

Hi,

I would like to create a bitmap/png of the scichart surface.
How can i do this in MVVM?

I saw an example with a “ExportElementToPng(FrameworkElement element, string filename)” function.
This works in Code behind, but in mvvm I don’t have the SciChartSurface.

Thanks…

  • You must to post comments
0
0

Update: Since this is a frequently asked question, we’ve created a tutorial on Render to Bitmap, Screen Capture of Charts & XPS Printing.

http://http://www.scichart.com/screenshots-xps-printing-x-axis-text-labels/

Best regards,
SciChart Support

  • EJansen
    Thanks,This works great. Good tutorial.I still have 2 questions: I'm creating a scichart completely from code, so no view and viewmodel in between.- How can I set the theme? - How can I set the number of major gridlines to a specific number?I'm using the following code to create an xAxis NumericAxis xAxis = new NumericAxis(); xAxis.AutoRange = false; xAxis.DrawLabels = false; xAxis.DrawMajorGridLines = true; xAxis.DrawMinorGridLines = false; xAxis.MajorDelta = 0.004; xAxis.VisibleRange = new DoubleRange(-0.024, 0.024); scs.XAxis = xAxis;I expect 12 gridparts (0.048 / 0.004), but I only see 10?Thanks, Egbert
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.