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 - NullReferenceException if you change the color of an Area series before adding it to the chart (in WPF)
Summary: NullReferenceException if you change the color of an Area series before addin...
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: WPF (show other bugs)
Version: TeeChart.NET 2014 4.1.2014.12154
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on: 934
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-24 04:57 EST by yeray alonso
Modified: 2015-01-16 05:44 EST (History)
1 user (show)

See Also:
Chart Series: Area
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();