We have a problem with an exporting WPF TChart to xaml. Number format in the attribute 'Rect' of tag 'RectangleGeometry' is wrong in the latest release of WPF TChart. There is comma instead dot:
Code: Select all
<Ellipse Fill="#FFFFFFFF" StrokeThickness="1" Stroke="#FF000000"
Canvas.Left="188.05" Canvas.Top="170.8" Height="5.39999999999998" Width="5.39999999999998">
<Ellipse.Clip>
<RectangleGeometry Rect="0,0,4,39999999999998,4,39999999999998"/>
</Ellipse.Clip>
</Ellipse>
Code: Select all
MyTChart = new TChart();
MyTChart.Aspect.View3D = false;
MyTChart.Width = 400;
MyTChart.Height = 300;
MyTChart.Axes.Left.SetMinMax(0, 5);
Points points = new Points();
points.Pointer.HorizSize = 2.2;
points.Pointer.VertSize = 2.2;
points.Pointer.Style = PointerStyles.Circle;
points.Pointer.Visible = true;
points.XValues.Order = ValueListOrder.None;
points.Add(2, 2);
MyTChart.Series.Add(points);
Microsoft.Win32.SaveFileDialog saveDialog = new Microsoft.Win32.SaveFileDialog();
if (saveDialog.ShowDialog() == true)
{
MyTChart.Export.Image.XAML.Save(saveDialog.FileName);
}