Set ItemsSource to a Collection of IDataPoints.

Oct 21, 2013 at 4:42 PM
Edited Oct 23, 2013 at 10:18 AM
I have a collection of IDataPoints...
        public Collection<IDataPoint> dataPoints1 = new Collection<IDataPoint>();
I set my ScatterSeries too said Collection.
var lineSeries1 = new ScatterSeries((string)Application.Current.FindResource("cloudLayersText"))
            {
                MarkerFill = CloudDetColour,
                MarkerStroke = CloudDetColour,
                MarkerType = MarkerType.Square,
                MarkerSize = 1.5,
                ItemsSource = dataPoints1,
            };
Why is my graph not showing the data I then subsequently add to my collection of IDataPoints? I know there is data in there as I can see there is over 1400 items in the collection.
Oct 23, 2013 at 10:18 AM
Anyone?
Coordinator
Oct 23, 2013 at 10:23 AM
Do you refresh/invalidate the plot / plotModel after you have added to the collection? I should add this as FAQ #1 :)
Oct 23, 2013 at 10:26 AM
I do this after updating the collections.
CloudLayerPlotModel.RefreshPlot(true);
OnPropertyChanged("CloudLayerPlotModel");
Oct 24, 2013 at 8:45 AM
What else could it be?