first forgive poor my english written
I Export to PNG before setting Zoom property is 5, 1 => 1, 1
but Export image is still 5, 1 Zoom setting
in XAML Code
1.
<!-- already Zoom property is 5,1 setting-->
2.
<
telerik:RadCartesianChart
Grid.Column
=
"0"
Grid.Row
=
"1"
x:Name
=
"trfChart1"
Palette
=
"Windows8"
Zoom
=
"5,1"
>
in cs Code
1.
// this.myChart.Zoom = new Size(5, 1) already setting Zoom property
2.
string
filename =
"C:\\ExportedChart.png"
;
3.
using
(System.IO.Stream fileStream = System.IO.File.Open(filename, System.IO.FileMode.OpenOrCreate))
4.
{
5.
this
.trfChart1.Zoom =
new
Size(1, 1);
// When before Export Zoom Property set Zoom 1, 1
6.
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(
this
.trfChart1, fileStream,
new
System.Windows.Media.Imaging.PngBitmapEncoder());
7.
}
8.
// But Export result is still Zoom 5, 1 setting
please give advise