Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
NullReferenceException on modifying axis properties of xamchart
posted

Hi, I recently upgraded from 2009.1 to 2009.2 of the Silverlight Data Visualization package.

Code which used to work when modifying axis properties  of a xamchart now results in a null reference exception.

eg

slChart.Axes[0].AutoRange = false;

slChart.Axes[0].Maximum = 100;

slChart.Axes[0].Minimum = data.Ymin;

slChart.Axes[0].Unit = 10;

 

the exception occurs on the first set.

The axis object definitely exists and the properties even have values.

  • 1134
    posted

    Hi,

    I was unable to reproduce your issue with the information provided above.  My suggestion is to create a new project with the 9.2 assemblies and copy your code over.  If you're still recieving the same exception, can you please reply back with a sample project reproducing the issue.

    Also, how did you go about upgrading your project from 9.1 to 9.2?