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…
- EJansen asked 11 years ago
- You must login to post comments
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
- SciChart answered 11 years ago
-
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 login to post comments
Please login first to submit.