BUG. Teechart for WFP serialization
Posted: Thu May 13, 2010 8:58 am
Version 4.0.2010.13057
Demo project: DemoProjectWPF
Step to reproduce:
1) run WPFDemo.exe
2) click on 'Serialized Chart' tab -> program crash with inner exeception:
'Type 'System.Windows.Media.Color' in Assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.'
I guess Tchart.Chart for WPF has a property tChart1.Chart.ColorPalette -> System.Windows.Media.Color[]. But System.Windows.Media.Color is not marked as serializable => Tchart.Chart serialization fail.
Demo project: DemoProjectWPF
Step to reproduce:
1) run WPFDemo.exe
2) click on 'Serialized Chart' tab -> program crash with inner exeception:
'Type 'System.Windows.Media.Color' in Assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.'
I guess Tchart.Chart for WPF has a property tChart1.Chart.ColorPalette -> System.Windows.Media.Color[]. But System.Windows.Media.Color is not marked as serializable => Tchart.Chart serialization fail.