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 1060

Summary: NullReferenceException if you change the color of an Area series before adding it to the chart (in WPF)
Product: .NET TeeChart Reporter: yeray alonso <yeray>
Component: WPFAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: chris
Priority: Normal    
Version: TeeChart.NET 2014 4.1.2014.12154   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=4&t=15352
Chart Series: Area Delphi / C++ Builder RAD IDE Version:
Bug Depends on: 934    
Bug Blocks:    

Description yeray alonso 2014-12-24 04:57:18 EST
See the attached project.
It's basically a WPF project doing this:

  Area area = new Area();
  area.Color = Colors.Aqua;
  area.FillSampleValues();
  tChart1.Series.Add(area);

It works fine if I do the same in a WinForms project.
It also works fine in WPF if I revert the fix ID=934.
It also works fine in WPF if I change the order of the calls above to this:

  Area area = new Area();
  tChart1.Series.Add(area);
  area.Color = Colors.Aqua;
  area.FillSampleValues();