Invalid RectangleGeometry in exported xaml of WPF TChart
Posted: Mon Oct 24, 2011 12:00 pm
Hello steema people!
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:
Try to execute the following code to reproduce that:
Probably, the problem is in any Culture (we tried Russian, English and Chinese)
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);
}