Page 1 of 1

Invalid RectangleGeometry in exported xaml of WPF TChart

Posted: Mon Oct 24, 2011 12:00 pm
by 15659641
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:

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>
Try to execute the following code to reproduce that:

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);
    }
Probably, the problem is in any Culture (we tried Russian, English and Chinese)

Re: Invalid RectangleGeometry in exported xaml of WPF TChart

Posted: Mon Oct 24, 2011 1:58 pm
by narcis
Hi neurosoft,

I have been able to reproduce the problem here and added it (TW16015796) to the defect list to be investigated.

Re: Invalid RectangleGeometry in exported xaml of WPF TChart

Posted: Wed Jan 11, 2012 12:08 pm
by 15659641
Hello steema.
I have downloaded the latest version of the TChart.WPF.dll, but I can reproduce my problem with that version. I'm very disappointed. It's very simple for you and very critical for us problem and I don't understand why that is not solved yet.

Re: Invalid RectangleGeometry in exported xaml of WPF TChart

Posted: Thu Jan 12, 2012 11:45 am
by 10050769
Hello Neurosoft,

I've added it with high priority because I consider it is an important feature but the time until it will be fixed also depends on the complexity of the problem and its solution. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.