Saving WPF TChart with special characters.
Posted: Thu Aug 25, 2011 9:50 am
Hello Steema!
We found one more bug for you. Error is in the process of exporting WPF TCHart to XAML.
Special characters in XAML must be replaced by their xml-friendly alternatives: http://msdn.microsoft.com/en-us/library/aa970677.aspx.
But it doesn't occur in exporting TChart. For example try to execute the following simple code and open the result xaml:
We found one more bug for you. Error is in the process of exporting WPF TCHart to XAML.
Special characters in XAML must be replaced by their xml-friendly alternatives: http://msdn.microsoft.com/en-us/library/aa970677.aspx.
But it doesn't occur in exporting TChart. For example try to execute the following simple code and open the result xaml:
Code: Select all
TChart MyTChart = new TChart();
MyTChart.Width = 400;
MyTChart.Height = 300;
MyTChart.Header.Text = "special chars: <>&";
Microsoft.Win32.SaveFileDialog saveDialog = new Microsoft.Win32.SaveFileDialog();
if (saveDialog.ShowDialog() == true)
{
MyTChart.Export.Image.XAML.Save(saveDialog.FileName);
}