hi,
i'm using version build 4.1.2015.12163.
i have a problem in exporting teechart into XAML.
it seems like a bug in the control.
the issue is related to strike-through.
i attached a picture of the exception i get.
i cannot upload the xaml file also as a text because you block this extention.
here is the xaml
https://pastebin.com/et2uP7dX
Problem in XAML export
Problem in XAML export
- Attachments
-
- error_in_xaml.png (30.19 KiB) Viewed 16670 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Problem in XAML export
Hello,
In the release notes of TeeChart for .NET version 4.1.2015.12160 we have:
I then opened chartstrikeout1.xaml in Visual Studio:
this works as expected. Could you please give me the TeeChart code you used to create the xaml file you posted?
In the release notes of TeeChart for .NET version 4.1.2015.12160 we have:
I have tested the code in this issue using TeeChart.dll version 4.1.2015.12163:4) [ID1361] http://bugs.teechart.net/show_bug.cgi?id=1361
Text strikeout not functional in XAML exportation.
Fixed.
Code: Select all
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.AfterDraw += TChart1_AfterDraw;
}
private void TChart1_AfterDraw(object sender, Graphics3D g)
{
g.Font.Strikeout = true;
g.TextOut(100, 100, "HELLO WORLD");
}
private void button1_Click(object sender, EventArgs e)
{
tChart1.Export.Image.XAML.Save(@"C:\tmp\chartstrikeout1.xaml");
}
}
this works as expected. Could you please give me the TeeChart code you used to create the xaml file you posted?
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Problem in XAML export
Hi,
Strike-though works for us too, but there is some end case it doesn't work.
Sorry but i cannot post the code of our teechart, it's too long and complicated and scattered over many files.
you can maybe try to investigate what is different from the XAML i posted. the WPF property TextDecorations is set twice.
Strike-though works for us too, but there is some end case it doesn't work.
Sorry but i cannot post the code of our teechart, it's too long and complicated and scattered over many files.
you can maybe try to investigate what is different from the XAML i posted. the WPF property TextDecorations is set twice.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Problem in XAML export
Hello,
It would be extremely useful to have some code with which we can reproduce the issue. If in the future you discover such code then please pass it to us. In the meantime we will run our own tests.iMDuser wrote: you can maybe try to investigate what is different from the XAML i posted. the WPF property TextDecorations is set twice.
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Problem in XAML export
Hi,
it's not easy for us to give code example because it is deep inside our application.
Is something has been found by you?
i'm sure if you'll give your developers a chance to look on it with the data i posted previously about the issue it will be found
it's not easy for us to give code example because it is deep inside our application.
Is something has been found by you?
i'm sure if you'll give your developers a chance to look on it with the data i posted previously about the issue it will be found
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Problem in XAML export
Yes, we have found the issue in TeeChart's source code and have resolved it (see id=2025). This fix will be available in the next maintenance release due out within the next two weeks.iMDuser wrote:Is something has been found by you?
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |