I've downloaded the latest version of WPF TeeChart. And I've got some new bugs in exporting TeeChart to XAML.
If I try to export Bar with borders or Point with borders and pointer style as Rectangle, I have incorrect result. Clip rectangles are too small for that series.
For example, try to execute the following code:
Code: Select all
MyTChart.Aspect.View3D = false;
Points points = new Points();
points.Pointer.Style = PointerStyles.Rectangle;
points.Pointer.Pen.Color = Colors.Black;
points.Add(10);
MyTChart.Series.Add(points);
Bar bar = new Bar();
bar.Add(5);
bar.Pen.Color = Colors.Black;
bar.Brush.Color = Colors.White;
MyTChart.Series.Add(bar);
Code: Select all
MyTChart.Export.Image.XAML.Save(exportedXamlPath);
Source: Result: If you open exported XAML with text editor, you can see incorrect part:
<Rectangle Fill="#FFFFFFFF" StrokeThickness="1" Stroke="#FF000000"
Canvas.Left="115.176666666667" Canvas.Top="63" Width="10" Height="10">
<Rectangle.Clip>
<RectangleGeometry Rect="0,0,9,9"/>
</Rectangle.Clip>
</Rectangle>
<Rectangle Fill="#FFFFFFFF" StrokeThickness="1" Stroke="#FF000000"
Canvas.Left="89.1766666666667" Canvas.Top="119" Width="62" Height="53">
<Rectangle.Clip>
<RectangleGeometry Rect="0,0,61,52"/>
</Rectangle.Clip>
</Rectangle>