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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.