We have some problems with exporting WPF TChart to XAML again. Just try to execute the following code:
Code: Select all
var MyTChart = new TChart();
MyTChart.Aspect.View3D = false;
MyTChart.Width = 400;
MyTChart.Height = 300;
MyTChart.Axes.Left.SetMinMax(0, 5);
Bar bar = new Bar();
bar.Add(10);
bar.Marks.Visible = false;
MyTChart.Series.Add(bar);
Microsoft.Win32.SaveFileDialog saveDialog = new Microsoft.Win32.SaveFileDialog();
if (saveDialog.ShowDialog() == true)
{
MyTChart.Export.Image.XAML.Save(saveDialog.FileName);
}
Source: Exported: