Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2025

Summary: XAML export with underline and strikethrough throws error
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: ExportingAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: TeeChart for .Net 4.1.2017.10196   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2018-04-09 04:58:15 EDT
The following code:

		private void InitializeChart()
		{
			tChart1.AfterDraw += TChart1_AfterDraw;
		}

		private void TChart1_AfterDraw(object sender, Graphics3D g)
		{
			g.Font.Strikeout = true;
			g.Font.Underline = true;
			g.TextOut(100, 100, "HELLO WORLD");
		}

		private void Button_Click(object sender, RoutedEventArgs e)
		{
			tChart1.Export.Image.XAML.Save(@"D:\tmp\chartstrikeout6.xaml");
		}


produces a XAML file which when opened throws the following error:

'Severity	Code	Description	Project	File	Line	Suppression State
Error		The property 'TextDecorations' is set more than once.	TeeChartProWPF	C:\Users\\source\repos\TeeChartProWPF\TeeChartProWPF\chartstrikeout6.xaml	18	
'