I want to print it using something like Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(chart, stream, new PngBitmapEncoder());
I wonder will it save only current zoomed part or all chart? Because i need all chart, not only zoomed part.
1 Answer, 1 is accepted
0
Tanya
Telerik team
answered on 18 Jan 2017, 11:25 AM
Hello Rata,
The ExportToImage() method takes the UI element as it is rendered. Thus, when exporting a zoomed chart, the image will contain only this part that is visualized.
To export the whole control without zooming, you can reset the zoom properties only to export the chart:
Size previousZoom = this.chart.Zoom;
Size chartSize = new Size(this.chart.ActualWidth, this.chart.ActualHeight);
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.