Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

DateTimeAxis: Setting Minimum from code

$
0
0

I have a Silverlight 5 Chart (toolkit chart) with Independent Axis ( X ) as DateTime Axis. 
I wish to set Minimum to this Axis from the code behind using this :
 ((DateTimeAxis)(((LineSeries)(EVChart.Series[0])).ActualIndependentAxis)).Minimum = dtMim;
but it gives me Object Reference error.

What I am missing here?

I have also tried :
- ((DateTimeAxis)(((LineSeries)(EVChart.Series[0])).IndependentAxis)).Minimum = dtMim;

- Giving name to DateTime Axis and refering that in code behind as dtAxisName.Minimum = dtMim;


 


Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>